- /
-
Mandelbrot
on 27 Oct 2021
- 2
- 4
- 2
- 0
- 165
[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)