%% Curtain Plot of Peaks Function
% Generate a curtain plot of the |peaks| function using |meshz|.

% Copyright 2015 The MathWorks, Inc.


figure
[X,Y] = meshgrid(-3:.125:3);
Z = peaks(X,Y);
meshz(Z)
