Main Content

atmosisa

Use International Standard Atmosphere model

Description

[T,a,P,rho,nu,mu] = atmosisa(height) implements the mathematical representation of the International Standard Atmosphere values for ambient temperature, T, pressure, P, speed of sound, a, density, rho, kinematic viscosity, nu, and dynamic viscosity mu, for the input geopotential altitude between -5000 m and the mesopause.

[T,a,P,rho,nu,mu] = atmosisa(height,Name=Value) specifies options using one or more name-value arguments.

example

Examples

collapse all

Calculate the International Standard Atmosphere at 1000 m.

[T, a, P, rho] = atmosisa(1000)
T = 
281.6500
a = 
336.4340
P = 
8.9875e+04
rho = 
1.1116

Calculate the International Standard Atmosphere at 1000, 11,000, and 20,000 m with extended=true to implement the mathematical representation of the International Standard Atmosphere values to between -5000 meters and the mesopause.

[T, a, P, rho] = atmosisa([1000 11000 20000],extended=true)
T = 1×3

  281.6500  216.6500  216.6500

a = 1×3

  336.4340  295.0695  295.0695

P = 1×3
104 ×

    8.9875    2.2632    0.5475

rho = 1×3

    1.1116    0.3639    0.0880

Input Arguments

collapse all

Geopotential heights, specified as an m-by-n array.

Data Types: double

Name-Value Arguments

collapse all

Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

Example: action,'Warning' displays a warning in the command window indicating that the input height is out of range.

Function behavior when input heights are out of range, specified as one of these values.

ValueDescription
'None'Does not display warning or error. If the input is less than the lower limit of the range, the output is set to the lower limit. If the input is greater than the upper limit of the range, the output is set to the upper limit.
'Warning'Warning in the MATLAB® Command Window indicating that the input height is out of range.
'Error'MATLAB displays error and indicates that the required input heights are out of range.

Dependencies

The atmosisa function takes the action into account when 'extended' is set to 'true'.

Output Arguments

collapse all

Temperatures, returned as an m-by-n array, in kelvin.

Speeds of sound, returned as an m-by-n array, in meters per second. The function calculates speed of sound using a perfect gas relationship.

Pressures, returned as an m-by-n array, in pascal.

Densities, returned as an m-by-n array, in kilograms per meter cubed. The function calculates density using a perfect gas relationship.

Kinematic viscosity, returned as an m-by-n array, in m2/s.

Dynamic viscosity, returned as an m-by-n array, in kilograms per meter second.

Limitations

The atmosisa function is designed to operate within a range of altitudes, from -5000 meters up to the mesopause at 84,852 meters.

If the action input is 'error', an input geopotential height outside these limits results in error. If the action input is 'warning' or 'none', the outputs are held at the limits.

References

[1] U.S. Standard Atmosphere, 1976. U.S. Government Printing Office, Washington, D.C.

Version History

Introduced in R2006b

expand all