Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- airspeed = 50 //Create a an airspeed variable
- myCell = cell(11,1,2) //Allocate an array to hold 22 force and drag values
- for k = 1:11
- myCell(k,1,1) = (0.5)*(1.225 kg/m^3)*(airspeed)^2*(427.8)*(2.3)
- myCell(k,1,1) = (0.5)*(1.225 kg/m^3)*(airspeed)^2*(427.8)*(0.15)
- airspeed = airspeed + 20
- end
- fprintf("For a true airspeed of 300: Lift:f%", myCell(11,1,1))
- fprintf("For a true airspeed of 300: Drag:f%", myCell(11,1,2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement