• Remix
  • Share
  • New Entry

on 6 Oct 2021
  • 12
  • 59
  • 1
  • 0
  • 242
%This produce Fractal plot
col=10;
r=1;
m=400;
cx=0.35;
cy=0;
ls=2;
x=linspace(cx-ls,cx+ls,m);
y=linspace(cy-ls,cy+ls,m);
[X,Y]=meshgrid(x,y);
Z=zeros(m)+eps;
C=X+i*Y;
for k=1:col;
Z=Z.^Z+C;
W=exp(-abs(Z));
end
colormap jet(256);
pcolor(flipud(W'));
shading flat;
%axis('square','equal','off');
axis square
axis([0 400 100 400])
axis off
Remix Tree