- /
-
Colorful butterfly
on 20 Oct 2022
- 14
- 86
- 2
- 1
- 201
[X,Y,Z] = meshgrid(-5:0.1:5);
V = Z.*exp(-X.^2-Y.^2-Z.^2);
[xsurf,ysurf] = meshgrid(-5:0.1:5);
zsurf = xsurf.^2-ysurf.^2;
contourslice(X,Y,Z,V,xsurf,ysurf,zsurf,1000)
view(135,0)
colormap colorcube
axis tight off