>> [x,y]=meshgrid(0:18,0:12);
>> z=sin(x+y).*x.^2+y.^3;
>> contour(x,y,z);
也可以把contour换成下面的,就变成了三维的啦.
>> surfl(x,y,z);