Borrar filtros
Borrar filtros

How open a nc file in matlab

89 visualizaciones (últimos 30 días)
Jonathan Demmer
Jonathan Demmer el 5 de Mayo de 2016
Comentada: suchitra rani el 14 de Ag. de 2019
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

Respuestas (1)

KSSV
KSSV el 5 de Mayo de 2016
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 comentarios
Jonathan Demmer
Jonathan Demmer el 8 de Jun. de 2016
Thank you very much!!!!!
suchitra rani
suchitra rani el 14 de Ag. de 2019
can we open an grey scale image which was in netcdf format in matlab.

Iniciar sesión para comentar.

Categorías

Más información sobre Data Import and Analysis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by