%% Contours of Peaks Function
% Define Z as a function of two variables. In this case, call the peaks function to create Z. Then display a filled contour plot of Z, letting MATLAB® choose the contour levels.

Z = peaks;
contourf(Z)

% Copyright 2018 The MathWorks, Inc.