gusucode.com > 《精通matlab 7》包括配套光盘 > 配套光盘里的程序附件/Ex-36/Ex3620.m

    %例36-20 二维和三维等高线图
z=peaks;
subplot(2,2,1)
contour(z)
subplot(2,2,3)
contourf(z)
subplot(2,2,2)
contour3(z,20)
subplot(2,2,4)
surfc(z)