Professional Documents
Culture Documents
if i<=h1+1
T(i,1)=T0+a0*h(i,1)*1e3;
P(i,1)=P0*(T(i,1)/T0).^(-g/a0/R);
Rho(i,1)=Rho0*(T(i,1)/T0).^(-g/a0/R-1);
elseif i<=h2+1
T(i,1)=T10;
P(i,1)=P1*exp(-g/R/T10*(h(i,1)-h1)*1e3);
Rho(i,1)=Rho1*exp(-g/R/T10*(h(i,1)-h1)*1e3);
elseif i<=h3+1
T(i,1)=T10+a2*(h(i,1)-h2)*1e3;
P(i,1)=P2*(T(i,1)/T10).^(-g/a2/R);
Rho(i,1)=Rho2*(T(i,1)/T10).^(-g/a2/R-1);
else
disp('No data');
end
end
ans =
1
33×4 table
h T P Rho
__ ______ __________ ________
2
3
Published with MATLAB® R2018a