clc
clear

x = linspace(-10,10,100);
y= linspace(-10,10,100);

[X,Y]= meshgrid(x,y);

Z= sin(X.^2 + Y.^2).* exp(-5* X.^2 + Y.^2);

surf(X,Y,Z);
title ('Surface Plot');
xlabel('x'), ylabel('y'), zlabel('f(x,y)');

contour(X,Y,Z,20);
title ('Contour Plot');
xlabel('x'), ylabel('y');
colorbar 

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: