File Exchange

image thumbnail

NWS Heat Index

version 1.0.2 (2.5 KB) by Eric Shearer
Heat Index code based on NWS's Heat Index Calculator tool.


Updated 11 Sep 2019

View License

Heat Index code based off NWS's Heat Index Calculator tool: NWS (National Weather Service). Meteorological Conversions and Calculations: Heat Index Calculator. 2014. Available:

Heat index values are not valid for extreme temperature and relative humidity conditions beyond the range of data considered by Steadman (see References). Works with arrays of any dimension and NaN values. If your "no data" values are not set to NaN, convert beforehand or the code won't work.

1. National Weather Service (NWS) Technical Attachment (SR 90-23). 1990. Available:
2. Steadman, R.G., 1979: The assessment of sultriness. Part I: A temperature-humidity index based on human physiology and clothing science. J. Appl. Meteor., 18, 861-873.
3. Anderson GB, Bell ML, Peng RD. Methods to calculate the heat index as an exposure metric in environmental health research. Environ Health Perspect. 2013;121(10):1111–1119. doi:10.1289/ehp.1206273

Cite As

Eric Shearer (2020). NWS Heat Index (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Lilian Yang



Previous HI equation out of date. Updated with 2014 version.


Fixed link to the calculator.

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