read_netcdf

Reads a netCDF file and returns the contents as elements of a structure.

Download
Download

You are now following this Submission

Cite As

Samuel Lazerson (2026). read_netcdf (https://in.mathworks.com/matlabcentral/fileexchange/28556-read_netcdf), MATLAB Central File Exchange. Retrieved .

Acknowledgements

Inspired: read_hdf5

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.7.0

All '+' converted to 'p' in names. All '-' converted to 'n' in names. Thanks to Thomas Leslie Leith for bringing this to my attention.

Download
1.6.0

Fixed an issue where non-string attributes would cause the code to fail to read the file. Thanks to Zelalem Engida for bringing this to my attention.

Download
1.5.0

Increased code's ability to handle strings.

Download
1.4.0

Added the 'strip' and 'flipdim' options.

Download
1.3.0

Fixed issue reading 1D arrays and some scalar variables.

Download
1.2.0

The function can now be called with the 'flipdim' option causing the array indices to be permuted in reverse order.

Download
1.1.0

Updated to v0.95. Now uses java to read netCDF files. I've found this is more portable than the MATLAB netCDF calls.

Download
1.0.0

Download