Info
This question is closed. Reopen it to edit or answer.
My graph will not display
1 view (last 30 days)
Show older comments
P1 = 1.513;
H = 4292;
y = 0:0.1:1
X = ((P1/H)*y) / (1+(1 - (P1/H)*y))
plot (X,y)
xlim([0 0.00001])
ylim([0 1.2])
0 Comments
Answers (1)
Ameer Hamza
on 3 Apr 2020
Edited: Ameer Hamza
on 3 Apr 2020
You need to use element-wise operators. See this: https://www.mathworks.com/help/matlab/matlab_prog/array-vs-matrix-operations.html
P1 = 1.513;
H = 4292;
y = 0:0.1:1;
X = ((P1/H).*y) ./ (1+(1 - (P1/H).*y));
plot (X,y)
0 Comments
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!