- /
-
Sofa for MAT Lab
on 27 Oct 2021
- 5
- 21
- 1
- 0
- 187
%set up mesh
n=200;
x=linspace(-2,5,n);
y=linspace(-2,4,n);
z=linspace(-2,5,n);
[X,Y,Z]=ndgrid(x,y,z);
%Compute function at every point in mesh
F=X.^200+Y.^200+Z.^2+2000*(X.^20+Y.^20).*(X.^2+Z.^30).*(Y.^200+Z.^200);
%generate plot
isosurface(F,1);
axis off;
view([-48 18]);