how to plot 3D data using NetCDF files ?

回答 (1 件)

KSSV
KSSV 2021 年 5 月 28 日

0 投票

Reading ncfile is very easy in MATLAB. You need to know only very few functions. Read about ncdisp, ncread.
ncfile = 'san_diego_bay_P020_2017.nc' ;
lon = ncread(ncfile,'lon') ;
lat = ncread(ncfile,'lat') ;
B = ncread(ncfile,'Band1') ;
pcolor(lon,lat,B')
shading interp
colorbar

製品

リリース

R2020a

タグ

質問済み:

2021 年 5 月 28 日

回答済み:

2021 年 5 月 28 日

Community Treasure Hunt

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

Start Hunting!

Translated by