<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">
clc;
clear all
close all;
x=[0:0.1:10];
y=[0:0.1:10];
[x y]=meshgrid(x,y);
z=-exp(-(x.^2+y.^2)/(0.1)^2);
mesh(x,y,z);
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">