File Exchange

image thumbnail

nistdata(species,T,​p)

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

4 Downloads

Updated 29 Sep 2019

View License

Downloads data tables from the NIST Chemistry Webbook (http://webbook.nist.gov/chemistry/fluid/) for a specified temperature and/or pressure range. The tables are useful for plotting or for data lookup by interpolation.

Cite As

Are Mjaavatten (2019). nistdata(species,T,p) (https://www.mathworks.com/matlabcentral/fileexchange/64578-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.

Updates

1.3.0.0

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

1.2.0.0

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!

1.1.0.0

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