How open a nc file in matlab

66 ビュー (過去 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 Center および File ExchangeStandard File Formats についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by