An error when using the load command
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
BN
el 16 de Mzo. de 2020
Comentada: BN
el 16 de Mzo. de 2020
Hey all,
I hope you are safe and healthy. I have a little problem with reading a NetCDF from another directory rather than the current folder.
I typed this:
load ('F:\MATLAB Behzad\Datasets and codes\GPCC\precip.mon.total.v2018.nc')
but it gave me this error:
Error using load
Unknown text on line number 1 of ASCII file F:\MATLAB
Behzad\Datasets and codes\GPCC\precip.mon.total.v2018.nc
"HDF
".
My NetCDF is successfully open when I change the current folder to the F:\MATLAB Behzad\Datasets and codes\GPCC.
Any help?
Thank you all
0 comentarios
Respuesta aceptada
Walter Roberson
el 16 de Mzo. de 2020
You cannot load() a .nc file. You need to use something like ncread()
Más respuestas (0)
Ver también
Categorías
Más información sobre NetCDF en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!