- /
-
Mandelbrot
on 27 Oct 2021
- 0
- 4
- 1
- 0
- 181
[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:128
z=z.^2+c;
m(logical((m==0).*(abs(z)==Inf)))=j;
end
mesh(m)
axis off
view(-144,47)
colormap('flag')