[高等教育]第一讲Matlab绘图.ppt

[高等教育]第一讲Matlab绘图

peaks(30); shading interp; colormap(hot) 例74 (1) [X,Y,Z]=peaks(30); surfl(X,Y,Z) shading interp; colormap(cool); axis off (2) peaks(30);colormap(hot); colorbar(horiz) figure(2); peaks(30); colormap(cool); colorbar(horiz) (3) hidden off 透视被叠压的图形 hidden on 消隐被叠压的图形 [X0,Y0,Z0]=sphere(30); X=2*X0;Y=2*Y0;Z=2*Z0; surf(X0,Y0,Z0); shading interp hold on,mesh(X,Y,Z),colormap(hot) hold off hidden off axis equal,axis off 例75 透视演示 表面图形的透明处理命令为hidden off,它是一个开关型命令,可以看到被遮挡的网格线条时图形透明。 2. 表面图形的透明处理 剔透玲珑球 例76 比较网图消隐前后的图形。 z=peaks(50); subplot(2,1,1); mesh(z); title(消隐前的网图) hidden

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档