• Remix
  • Share
  • New Entry

on 24 Oct 2021
  • 35
  • 8
  • 0
  • 0
  • 280
% Based on Mandelbrot Chapter of Cleve Moler "Experiments in MATLAB"
% The Mandelbrot set fractal on the MATLAB logo
% By Victoria A. Sablina
a=-1.78368391508200646;
b=-3.67004748e-4;
w=9.0e-10;
s=1.5e-12;
x=a-w:s:a+w;
y=x'-a+b;
n=numel(x);
e=ones(n,1);
z0=x(e,:)+i*y(:,e);
z=zeros(n);
c=z;
d=1024;
for k=1:d
z=z.^2+z0;
c(abs(z)<2)=k;
end
L=membrane(1,600);
surf(L,c,'EdgeColor','none','CDataMapping','direct');
colormap(flipud(jet(d)));
view(-45,10);
axis off;
Image
Remix Tree