Code covered by the BSD License

### Highlights from Standard Atmosphere Calculator

3.09091
3.1 | 11 ratings Rate this file 16 Downloads (last 30 days) File Size: 2.29 KB File ID: #8799 Version: 1.0

# Standard Atmosphere Calculator

### Richard Rieber (view profile)

23 Oct 2005 (Updated )

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

File Information
Description

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.

Acknowledgements

This file inspired Complete 1976 Standard Atmosphere and Atmos: Standard Atmosphere Function.

MATLAB release MATLAB 6.5 (R13)
Other requirements Cheesecake
31 Mar 2015 liang he

### liang he (view profile)

01 Jan 2008 Michael Young

Errors in calculated values. Don't Use

Accuracy is far below what is required in most aerospace classes now

21 Aug 2007 Richard Rieber

I have no plans about maintaining this function or improving its accuracy. Brent Lewis has written a much better function that includes altitudes upwards of 2000 km and also molecular composition. This is excellent for both aircraft, rockets, and for use in atmospheric drag calculations.

If you require high degrees of accuracy and the more complete version, please use Mr. Lewis' software. However, if you need a simple function with lower accuracy, by all means, try mine.

Comment only
17 Jan 2007 Caleb Weitz

Very rough values for constants and sloppy coding. Think about recoding.

11 Jan 2007 Brent Lewis

Only covers less than 10% of the 1976 Standard Atmosphere(what is that half a star :) ). Might try the COMPLETE 1976 standard atmosphere. See ya in class(or the bar) Rich

21 Dec 2006 Tom Terrell

Careful on the accuracy of this program, it is based on an obsolete atmosphere model

06 May 2006 Eric Wendel

Also, I think line 112 should read:
"[TNew, PNew, RhoNew] = Gradient(H5, H6, TNew, PNew, RhoNew, L6)"

It would also be very helpful if the input were allowed to be a vector.

28 Apr 2006 Lance Locey
29 Mar 2006 Denis Fefelov
28 Mar 2006 Ramji Srimurugan
15 Feb 2006 matt b

Needed to modify it to work with my version of matlab,
[mat] = atmosphere(...)
...
mat = [t, p,rho,a]