%% Create 3-D Contour Plot
% Set up matrices X and Y using the meshgrid function. Plot 30 contours of matrix Z.

x = -2:0.25:2;
[X,Y] = meshgrid(x);
Z = X.*exp(-X.^2-Y.^2);
contour3(X,Y,Z,30)

% Copyright 2015 The MathWorks, Inc.