Having an Error in ncread

조회 수: 15 (최근 30일)
audi rachman
audi rachman 2021년 5월 8일
답변: Walter Roberson 2021년 5월 8일
try to open a netcdf using matlab, when I used ncread it says "Error in ncread". I don't know what's the problem because when I asked my friend to open the same file with the same script as mine on his computer it works fine without error. I try to uninstall my matlab and reinstall with several different version but it doesn't solve the problem. Any solution to fix my problem? currently I'm using matlab 2020b version. Here is script code to open my netcdf file:
ncdisp('T_Maret2016.nc');
lon=ncread('T_Maret2016.nc','Longitude');
lat=ncread('T_Maret2016.nc','Latitude');
z=ncread('T_Maret2016.nc','Depth');
time=ncread('T_Maret2016.nc','MT');
and I attached an example of variable in my netcdf file.
  댓글 수: 2
per isakson
per isakson 2021년 5월 8일
편집: per isakson 2021년 5월 8일
"Error in ncread" Please show the entire error message.
audi rachman
audi rachman 2021년 5월 8일
hi this is the entire error message

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

답변 (1개)

Walter Roberson
Walter Roberson 2021년 5월 8일
Rename your ncread.m to something else other than ncread.m .

카테고리

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