필터 지우기
필터 지우기

How open a nc file in matlab

조회 수: 89 (최근 30일)
Jonathan Demmer
Jonathan Demmer 2016년 5월 5일
댓글: suchitra rani 2019년 8월 14일
hi everybody,
I tried to open a file.nc downloaded on aviso+ website. However, a message error appears:
>> load E:\cool.nc Error using load Number of columns on line 2 of ASCII file E:\cool.nc must be the same as previous lines.
Could someone help me please?
Thank you
jonathan

답변 (1개)

KSSV
KSSV 2016년 5월 5일
You cannot use load to read a nc file.....
ncfile = 'yourfile.nc' ; % nc file name
% To get information about the nc file
ncinfo(ncfile)
% to display nc file
ncdisp(ncfile)
% to read a vriable 'var' exisiting in nc file
myvar = ncread(ncfile,'var') ;
  댓글 수: 2
Jonathan Demmer
Jonathan Demmer 2016년 6월 8일
Thank you very much!!!!!
suchitra rani
suchitra rani 2019년 8월 14일
can we open an grey scale image which was in netcdf format in matlab.

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

카테고리

Help CenterFile Exchange에서 Data Import and Analysis에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by