- /
-
Pac-Man
on 27 Oct 2021
- 20
- 142
- 2
- 0
- 275
x = 0:0.01:1;
[x,y,z] = meshgrid(x,x,x);
f = @(x)cos(2*pi*(x));
F = f(x).*f(y).*f(z);
hold on
isosurface(x,y,z,F,0.1,x)
isosurface(x,y,z,F.^2,0.25,x)
isosurface(x,y,z,F.^4,0.55,x)
isosurface(x,y,z,F.^6,0.75,x)
isosurface(x,y,z,F.^8,0.95,x)
colormap jet
pbaspect([1,1,1])
view(45,45)
axis off;