- 积分
- 382
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-7-3
- 最后登录
- 1970-1-1
|
发表于 2013-3-26 14:05:18
|
显示全部楼层
本帖最后由 liuzf406 于 2013-3-26 14:06 编辑
为何我用你的方法不出图呢?我用的是matlab r2012b:
fid=netcdf.open('c:/etop05/data.cdf','nc_nowrite');
ncdisp('c:/etop05/data.cdf')
lon=netcdf.getVar(fid,0);
lat=netcdf.getVar(fid,1);
lev=netcdf.getVar(fid,2);
lon=lon(1441:1597);
lat=lat(709:901);
lev=lev(709:901,1441:1597);
[x,y]=meshgrid(lon,lat);
view([10 -10 55]);
hold on;
surf(x,y,lev); 为何这步完成后没有图啊?请指点一下啊!
shading interp;
运行完这步后全是警告:
“Warning: CData must be double or single unless it is used only as a texture data ”
|
|