www.gusucode.com > graphics 案例源码程序 matlab代码 > graphics/SurfaceAndContourPlotOfPeaksFunctionExample.m

    %% Display Contour Plot Under Surface Plot
% Display a contour plot under a surface plot of the |peaks| function. 

% Copyright 2015 The MathWorks, Inc.


[X,Y,Z] = peaks(30);
figure
surfc(X,Y,Z)