Problem in Plotting graph.

5 ビュー (過去 30 日間)
Arif
Arif 2014 年 3 月 29 日
コメント済み: Arif 2014 年 3 月 29 日
I am a beginner of matlab , having simple problem. i want to make a graph by this program but not successful yet. kindly help me by identifying and rectifying the problem.
% Question Number 6
clc
clear
a=0.1;
p=120000;
t=288;
dax=0.1;
m=150;
r=287;
cp=1004;
row=1.45;
v(1)=300;
for i=1:2*m;
v(i+50)=v(i);
end
for j= 1:5;
dvx(j+1)=dvx(j)
end
dvx=-0.145*v(i)/(0.145+(0.1*v(i)*((v(i)/cp-v(i)/r)*(row/r))))
plot(v,dvx(j),'+');
  3 件のコメント
Marta Salas
Marta Salas 2014 年 3 月 29 日
Note: there is a good reason for not using i & j as indexes in MATLAB http://matlab.wikia.com/wiki/FAQ#Why_is_6.2Ai_not_a_complex_number_in_my_program.3F
Arif
Arif 2014 年 3 月 29 日
I Want to plot a graph between 'v' and 'dvx' . with the values of v are from 50 to 300 and accordingly resultant values of dvx.

サインインしてコメントする。

採用された回答

Marta Salas
Marta Salas 2014 年 3 月 29 日
編集済み: Marta Salas 2014 年 3 月 29 日
p=120000;
t=288;
dax=0.1;
m=150;
r=287;
cp=1004;
row=1.45;
v=50:300;
dvx=-0.145*v./(0.145+(0.1*v.*((v./cp-v./r)*(row/r))))
plot(v,dvx,'+');
Is this what you want?
  1 件のコメント
Arif
Arif 2014 年 3 月 29 日
Thanks a lot for help.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by