- /
-
Mandelbrot
on 27 Oct 2021
- 2
- 11
- 3
- 0
- 182
[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
imagesc(m)
axis equal off
colormap('colorcube')