gusucode.com > 《精通matlab 7》包括配套光盘 > 配套光盘里的程序附件/Ex-36/Ex3614.m
%例36-14 三维曲面绘图 [t,s]=meshgrid(0:0.1*pi:2*pi); x=sin(t).*cos(s); y=cos(t).*sin(s); z=cos(2*t).*cos(2*s); subplot(1,2,1) mesh(x,y,z) subplot(1,2,2) surf(x,y,z)