Density altitude calculator

version (8.63 KB) by Sky Sartorius
Finds altitude in the atmosphere as a function of air density.


Updated Mon, 03 Jul 2017 20:00:12 +0000

View License

Merged with other entry at
This entry will not be kept up to date.

H = DENSITYALT(RHO,Param1,Val1,Param2,Val2,...) returns altitude, H, as a function of air density, RHO.
The input RHO can be followed by parameter/value pairs for further control:
inputUnits - String for units of input RHO, either kg/m³ or slug/ft³.
outputUnits - String for units of output H, either meters or feet.
atmosphereFunc - String determining atmosphere function to be used ( stdatmo | atmosisa | atmoscoesa | atmosnonstd ).
atmosphereArgs - Cell array of additional arguments to pass to atmosphereFunction after the density input (e.g. for non-standard atmospheres).
method - Method used for either searching for (with fzero or bisection) or interpolating a solution (the equations that define the standard atmosphere cannot be inverted in terms of density).
options - Options used for fzero or bisection methods.
and others.

Cite As

Sky Sartorius (2022). Density altitude calculator (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired by: Standard Atmosphere Functions

Inspired: Standard Atmosphere Functions

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!