Question: why isnt the variable pg 1 recognized in the lines below function [ T , P ] = stdatm _ MuetzelDonovan ( h ) %
why isnt the variable pg recognized in the lines below function T P stdatmMuetzelDonovanh
Define Constants
g;
R;
t;
p;
d;
eexp;
Calculate temp, pressure, and density of a given height
calculate temprature first line, pressure second, density rd line
if hg
T h;
PTtgRp;
pgtgRp;
elseif h && h i
T;
PeghRTpg;
piegRTpg;
elseif h && h g
Th;
PTtgRppi;
pgtgRppi;
elseif h && h i
T;
PeghRppg;
piegRTpg;
elseif h && h g
Th;
PTtgRppi;
pgtgRppi;
elseif h && h i
T;
PeghRppg;
pi egRTpg;
elseif h && h g
Th;
PTtgRppi;
pgtgRppi;
end
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
