How can I load a NetCDF-file into MATLAB?

2 views (last 30 days)
When I try to read my NetCDF file with the CDFREAD function, I receive the following error:
ERROR: ??? NOT_A_CDF: Named CDF is corrupted or not actually a CDF.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 26 Mar 2023
Edited: MathWorks Support Team on 27 Mar 2023
This enhancement has been incorporated in MATLAB 7.7 (R2008b). For previous product releases, read below for any possible workarounds:
NetCDF format is a data file format that can accept a diverse set of data and data types. There is a third-party solution called MexCDF that will allow MATLAB to interface with NetCDF-files. For more information about MexCDF, see the following web page:

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by