Используя набор инструментов Aerospace, это выглядит как прямое использование atmosisa
и subplot
.
![Graphs showing Temperature, Speed of Sound, Pressure, and Density as a function of Height](https://i.stack.imgur.com/V6xLQ.jpg)
Соответствующие допущения и единицы измерения содержатся в документации .
% MATLAB R2019a
height = [0:1000:20000]; % meters
[T, a, P, rho] = atmosisa(height);
% Plot
figure
s(1) = subplot(2,2,1)
plot(height,T)
ylabel('Temperature (K)')
s(2) = subplot(2,2,2)
plot(height,a)
ylabel('Speed of Sound (m/s)')
s(3) = subplot(2,2,3)
plot(height,P)
ylabel('Pressure (Pa)')
s(4) = subplot(2,2,4)
plot(height,rho)
ylabel('Density (kg/m^3)')
% Cosmetics
for jj = 1:4
xlabel(s(jj),'Height (m)') % Common label for x-axis
ax = s(jj);
ax.XRuler.Exponent = 0; % Remove scientific notation
ax.YRuler.Exponent = 0;
end