photo

Lakhvir Sandhar


Active since 2016

Followers: 0   Following: 0

Statistics

MATLAB Answers

8 Questions
0 Answers

RANK
226,924
of 300,853

REPUTATION
0

CONTRIBUTIONS
8 Questions
0 Answers

ANSWER ACCEPTANCE
62.5%

VOTES RECEIVED
0

RANK
 of 21,094

REPUTATION
N/A

AVERAGE RATING
0.00

CONTRIBUTIONS
0 Files

DOWNLOADS
0

ALL TIME DOWNLOADS
0

RANK

of 171,319

CONTRIBUTIONS
0 Problems
0 Solutions

SCORE
0

NUMBER OF BADGES
0

CONTRIBUTIONS
0 Posts

CONTRIBUTIONS
0 Public Channels

AVERAGE RATING

CONTRIBUTIONS
0 Discussions

AVERAGE NO. OF LIKES

  • Thankful Level 3

View badges

Feeds

View by

Question


how to fix error in my simple for loop
I have a code that I need to get to work. Basically C_0= 350. I need to set a timestep to count for hours, doesn't mater how man...

8 years ago | 1 answer | 0

1

answer

Question


I need this code to start from 5 to 1. How can I do this?
Hi I am doing a draining tank problem where the initial water height is 5 m and it drops to 1 m. Can someone help me have it plo...

8 years ago | 1 answer | 0

1

answer

Question


I am getting an error saying that matrix dimensions must agree. Can anyone help me? The problem is only near the very end of my code
clc;clear all; %------Question 1------------ P=[0.6 0.9 1.2 1.5 1.8].*100000;%Inlet pressure convert from bar to...

8 years ago | 1 answer | 0

1

answer

Question


I still have errors in my code and would like help in fixing these errors. I have to get my unknowns within the ranges of 0<V<50, 0<D<10, 0<f<1, and Re>2300. I have attached my code so far along with the equations given to be solved
I also need to create a graph of errors. Original Equations to solve for Unknowns are: V=0.35/((pi*D^2)/4) Re=(VD)/0.000...

9 years ago | 1 answer | 0

1

answer

Question


Can anyone convert this Pseudocode to Matlab
FUNCTION Simp13m (h, n, f) sum 5 f(0) DOFOR i 5 1, n 2 2, 2 sum 5 sum 1 4 * fi 1 2 * fi11 END DO sum 5 sum ...

9 years ago | 1 answer | 0

1

answer

Question


Hey guys can anyone help me to see where I am wrong in my code? I have to get my unknowns within the ranges of 0<V<50, 0<D<10, 0<f<1, and Re>2300. I have attached my code so far.
Original Equations to solve for Unknowns are: 1. V=0.35/((pi*D^2)/4) 2. Re=(VD)/0.00001265 3. 20=f*(150/D)*((V^2)/(2*9....

9 years ago | 1 answer | 0

1

answer

Question


Can anyone spot my mistake? I am trying to create a code that answers the question. A graph comes up, but nothing is in, so basically an empty graph with only the axis numbered (no plots). Can someone tell me why nothing is showing up?
The question i am asked is: Generate a 21 X 21 mesh on a xy coordinate system. Mesh x & y are bounded in a square -1≤x≤1 & -1...

9 years ago | 1 answer | 0

1

answer

Question


Can anyone convert this Pseudocode into Matlab?
FUNCTION Simp13m (h, n, f) sum = f(0) DOFOR i=1, n-2, 2 sum = sum + 4 * f_i + 2 * f_i+1 END DO sum = sum + ...

9 years ago | 1 answer | 0

1

answer