Undefined function or variable 'netcdf'

10 ビュー (過去 30 日間)
wassim boulala
wassim boulala 2020 年 6 月 7 日
回答済み: Walter Roberson 2020 年 6 月 7 日
hi!
I Want to use the netCDF function , but i don't know how to download the package and include it into matlab . can sombody help me ?
thanks
f=netcdf('map.grd','r');
lon=f{'lon'}(:);
lat=f{'lat'}(:);
d=f{'altitude'}(:);
fillval=f{'altitude'}.FillValue_(1);% fillvals c des NaN!

回答 (1 件)

Walter Roberson
Walter Roberson 2020 年 6 月 7 日
Importing a netcdf package is not recommended. MATLAB has built-in functions for working with NetCDF files; see https://www.mathworks.com/help/matlab/network-common-data-form.html (and if you need more control, notice the lower-level functions are provided such as netcdf.open )

カテゴリ

Help Center および File ExchangeNetCDF についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by