ncdfread.m

Reads netcdf files in MATLAB 7.11, returns info in three structs: variables, attributes, dimensions

You are now following this Submission

input file name and path: fname

output:

vars: - variables
varatts: - variable attributes
dims: - dimensions

Written on a MacBook
Tested on NCEP/NCAR reanalysis data

Cite As

Ryan Eastman (2026). ncdfread.m (https://www.mathworks.com/matlabcentral/fileexchange/29338-ncdfread-m), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

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

Updated May 2013, outputs variable dimensions in correct order. Now returns all attributes rather than skipping the first one.

1.0.0.0