- /
-
Mandelbrot contour3
on 27 Oct 2021
- 1
- 8
- 0
- 0
- 161
[x,y]=meshgrid(-2:0.001:0.5,-1.2:0.001:1.2);
c=x+y*i;
z=zeros(height(y),width(x));
m=z;
for j=2:64
z=z.^2+c;
m(logical((m==0).*(abs(z)==Inf)))=j;
end
contour3(x,y,m,6)
axis off