MATLAB: True airspeed of different level

aircraft speedairplaneplot m-file function graph

How can I plot a graph using the m-file function ?
The true airspeed of an aircraft in straight and level flight is given by ? = Sqrt(2?? /????) where ? – true airspeed ? – aircraft mass ? – acceleration due to gravity ? – air density ? – wing surface area ?? – coefficient of lift
Which the mass is 1204, the acceleration of gravity is 9.81, the air density is 1.0587 and 0.8198, the wing surface area is 12.203 adn the coefficient of lift is 0.6 ≤ ?? ≤ 1.4.

Best Answer

I am not sure if this is what you are looking for.
g=9.81;
d=[1.0587,.8198];
S=12.203;
m=1204;
cl=linspace(.6,1.4,20);
hold on
for p=d
V=sqrt(2*m*g/p/S./cl);
plot(cl,V)
end