gusucode.com > 《精通matlab 7》包括配套光盘 > 配套光盘里的程序附件/Ex-24/Ex2413.m
%例24-13 简易三维绘图函数 %Ex24-13 easy 3-D plot close all clear subplot(2,2,1) ezplot3('sin(t)','cos(t)','sin(2*t)',[0,2*pi]) subplot(2,2,2) ezmesh(@peaks,[-5 5 -5 5]) subplot(2,2,3) ezsurf(@(x,y)(x.^2+y.^2),[-5 5 -5 5]) subplot(2,2,4) ezsurfc(@(x,y)(x.^2+y.^2),[-5 5 -5 5])