Standard Atmosphere Calculator

Calculates pressure, density, temperature, and speed of sound as a function of height.


Updated 9 May 2006

View License

Using the 1976 US standard atmosphere model, this function returns pressure, denisity, temperature, and speed of sound at a given altitude. Works for both English and metric units.

Cite As

Richard Rieber (2023). Standard Atmosphere Calculator (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Environment in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

An error was discovered in the upper atmosphere section of the code. This has been fixed. The software can now accept vector inputs as opposed to just a single altitude.