%% Mesh Plot of Mathematical Function
% Create a mesh plot of the function $$ f(x,y) = xe^{-x^2-y^2} $$ over a
% 40-by-40 grid. 

% Copyright 2015 The MathWorks, Inc.



fh = @(x,y) x.*exp(-x.^2-y.^2);
ezmesh(fh,40)

%%
% Set the mesh lines to a uniform blue color by setting the colormap to a
% single color. 

colormap([0 0 1])