Question: Matlab code Do not use function! 2. The altitude, h, as a function of air pressure can be calculated by: 0.190289 h -145306.451-(25 1013.25 where
2. The altitude, h, as a function of air pressure can be calculated by: 0.190289 h -145306.451-(25 1013.25 where h is in units of feet and the pressure p in units of millibars (mb). Write a MATLAB program in a script file that calculates the h for a given p. For input the program asks the user to enter the pressure in units of millibars. The program then calculates the altitude rounded to the nearest integer. For output the program displays the message: "The altitude is: XX ft where XX is the calculated value of h. Determine the altitude if the pressure is 394 mb. 31
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
