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

조회 수: 2 (최근 30일)
Pedro Cavaco
Pedro Cavaco 2011년 10월 11일
편집: John Kelly 2015년 2월 27일
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?

답변 (1개)

Ashish Uthama
Ashish Uthama 2011년 10월 11일
편집: John Kelly 2015년 2월 27일
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
Pedro Cavaco
Pedro Cavaco 2011년 10월 12일
Where can I download that netcdf package then?
Ashish Uthama
Ashish Uthama 2011년 10월 13일
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/

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 NetCDF에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by