%% Display Single Contour Line
% Create a contour plot of the |peaks| function and display only one contour
% level at |Z = 1|.

% Copyright 2015 The MathWorks, Inc.


x = -3:0.125:3;
y = -3:0.125:3;
[X,Y] = meshgrid(x,y);
Z = peaks(X,Y);
v = [1,1];

figure
contour(X,Y,Z,v)
