xx=-5:0.1:5;
yy=xx;
[x,y]=meshgrid(xx,yy);
z=x.^2+y.^2+sin(x.*y);
subplot(1,2,1)
mesh(x,y,z)
subplot(1,2,2)
contour(x,y,z)
colorba
xx=-5:0.1:5;
yy=xx;
[x,y]=meshgrid(xx,yy);
z=x.^2+y.^2+sin(x.*y);
subplot(1,2,1)
mesh(x,y,z)
subplot(1,2,2)
contour(x,y,z)
colorba