MATLAB: Problem in Plotting graph.

graphplot

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),'+');

Best Answer

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?
Related Question