clcclearformat longR=287;r=1.4;Mach=[2:0.5:6];for i=1:9 M=Mach(1,i); for density=1.225 To=300; p=101325; ao=sqrt(r*R*To); V=ao*M; m=M^2; P=p*(((2*r*m)-(r-1))/(r+1)); D=density*(((r+1)*m)/(((r-1)*m)+2)); Q=(D*((V^2)/2)); Po=P+Q; plot(Po,P,'r*') hold on end for density=1.203 To=284.9; p=99507.54; ao=sqrt(r*R*To); V=ao*M; m=M^2; D=density*(((r+1)*m)/(((r-1)*m)+2)); Q=D*((V^2)/2); P=p*(((2*r*m)-(r-1))/(r+1)); Po=P+Q; plot(Po,P,'ko') hold on endendhold offxlabel('Po')ylabel('P')legend('Wind Tunnel','FL500','Location','northwest')
MATLAB: Plot lines not showing up
plot lines
Related Question
- I am solving a system of non linear equation using vpasolve but it shows answer as [0*1sym] any other method that I can use
- How to write Continue Long Statements on Multiple Lines
- Index exceeds the number of array elements (1) error on line 10
- Dear friends, the long matlab command that I have written is error. I want to be spelled the same way but without error.
Best Answer