%% Contours at One Level
% Define Z as a function of X and Y. In this case, call the peaks function to create X, Y, and Z. Then display the contours at Z = 2.

[X,Y,Z] = peaks;
contour3(X,Y,Z,[2 2]);

% Copyright 2018 The MathWorks, Inc.