File Exchange

image thumbnail


version (4.72 KB) by Are Mjaavatten
Create tables of thermophysical properties for gases


Updated 29 Sep 2019

View License

Downloads data tables from the NIST Chemistry Webbook ( for a specified temperature and/or pressure range. The tables are useful for plotting or for data lookup by interpolation.

Cite As

Are Mjaavatten (2020). nistdata(species,T,p) (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (3)

Thanks to Martijn van Heumen for his constructive comment. The code has been updated accordingly in version 1.3.

Thank you!
The file did not work for me under R2018b. After replacing txt = webread(url); by options = weboptions('RequestMethod','get','ArrayFormat','csv','ContentType','text'); txt = webread(url,options); it works perfectly.


Corrected code for downloading data, according to the comment by Martijn van Heumen.

For Matlab versions older that R2017b, I now use Python (2.7 or 3.x) as a workaround to read the secure (https) web pages from NIST. See the readme.txt file for details. I welcome feedback on how this works for you!

nistdata ceased to work after NIST upgraded to the https protocol. I have updated the file so that it will hopefully work in Matlab 2017b and later, but my Matlab licence is too old to test this.

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