• Remix
  • Share
  • New Entry

on 19 Oct 2021
  • 5
  • 23
  • 0
  • 0
  • 257
% This is a demo created by MathWorks community team.
% Author: Ned Gulley
% Please do not vote on this demo entry.
p = 500;
x0 = -0.6;
r = 1.5;
k = 50;
x = linspace(x0-r, x0+r, p);
y = linspace(-r, r, p);
[X, Y] = meshgrid(x, y);
Z = X + 1i*Y;
m = k*ones(size(Z));
z = Z;
for n = 0:k
z = csc(z*20)+Z;
h = abs(z)>2;
z(h) = NaN;
m(h) = n;
end
imshow(m,[])
colormap(hot)
caxis([-10 20])
view(40,45)
camva(4.5)
Image
Remix Tree