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!