Why am I unable to call the ncread function to read NetCDF files?

3 Ansichten (letzte 30 Tage)
Pedro Cavaco
Pedro Cavaco am 11 Okt. 2011
Bearbeitet: John Kelly am 27 Feb. 2015
Hi all,
When I call the function "ncread" in MATLAB i get the following error message:
??? Undefined function or method 'ncread' for input arguments of type 'char'.
Is it because I might be missing a netcdf.lib file in my matlab?

Antworten (1)

Ashish Uthama
Ashish Uthama am 11 Okt. 2011
Bearbeitet: John Kelly am 27 Feb. 2015
Pedro, you might not have the latest version of MATLAB. ncread was first shipped with R2011a. If possible, consider upgrading. If not, have a look at the netcdf package, look for an example under the low-level interface here.
  2 Kommentare
Pedro Cavaco
Pedro Cavaco am 12 Okt. 2011
Where can I download that netcdf package then?
Ashish Uthama
Ashish Uthama am 13 Okt. 2011
The netcdf package linked above is part of MATLAB, it shipped much before the ncread/ncwrite etc functions. I guess you are on a older version than I thought (i.e older than 8b). If you cannot upgrade, your best bet would be: http://mexcdf.sourceforge.net/

Melden Sie sich an, um zu kommentieren.

Community Treasure Hunt

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

Start Hunting!

Translated by