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

    %% Create Filled Contour Plot
% Use the |peaks| function to define |z| as a 20-by-20 matrix. Create a filled
% contour plot of |z| with 10 contour lines.

% Copyright 2015 The MathWorks, Inc.


Z = peaks(20);
contourf(Z,10)