• Remix
  • Share
  • New Entry

on 13 Oct 2021
  • 1
  • 17
  • 0
  • 0
  • 277
rng(1);
n = 1000;
itr = 50;
x0 = -2.0; x1 = 0.5;
y0 = -1.5; y1 = 1.5;
[x, y] = meshgrid(linspace(x0, x1, n), linspace(y0, y1, n));
c = x + 1i * y;
z = zeros(size(c));
k = zeros(size(c));
for ii = 1:itr
z = z.^2 + c;
k(abs(z) > 2 & k == 0) = itr - ii;
end
figure,
imagesc(k'),
colormap hot
axis square
Image
Remix Tree