MATLAB case two

[X,Y] = meshgrid([-2:.25:2]);
Z = X.*exp(-X.^2 -Y.^2);
surf(X,Y,Z);
view([180 0]);
Insert picture description here

Guess you like

Origin blog.csdn.net/m0_38127487/article/details/115033935