MATLAB: How to draw surface

two-dimensional integral surface

how do I write the program that draws the two-dimensional integral surface of the function in Matlab ?

Best Answer

You can draw it using meshgrid and surf
[X, Y] = meshgrid(linspace(-3,3));
Z = exp(-X.^2-Y.^2);
surf(X,Y,Z)
shading interp