%Contains plotting commands to generate 3-D gaussian

[x,y]=meshgrid([-2:.2:2]);
Z=x.*exp(-x.^2-y.^2);
surf(x,y,Z,gradient(Z));
colorbar