My code only plots one point

조회 수: 6 (최근 30일)
Alexis Correa
Alexis Correa 2021년 2월 9일
편집: KALYAN ACHARJYA 2021년 2월 9일
Im trying to plot N(# of stages) vs pi_s(pressure ratio), but i only get one point.

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2021년 2월 9일
편집: KALYAN ACHARJYA 2021년 2월 9일
Define Before the loop
t=1:N
for i=1:length(t)
tao_s=
pic_s(i)=
end
plot(t,pic_s);
Also you can avoid the loop here (recomended)
N=.....
tao_s=(Tt1+N.*delta....)./ same . after N, like N.*
pic_s=tao_s.^.....
plot(1:N,pic_s)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by