My graph will not display
信息
此问题已关闭。 请重新打开它进行编辑或回答。
显示 更早的评论
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 个评论
回答(1 个)
Ameer Hamza
2020-4-3
编辑:Ameer Hamza
2020-4-3
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 个评论
此问题已关闭。
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!