• Remix
  • Share
  • New Entry

on 24 Oct 2021
  • 35
  • 9
  • 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.74975918013036646;
b=-3.68513796e-10;
w=5.0e-8;
s=1.0e-10;
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=2048;
for k=1:d
z=z.^2+z0;
c(abs(z)<2)=k;
end
L=membrane(1,500);
surf(L,c,'EdgeColor','none','CDataMapping','direct');
colormap(flipud(jet(d)));
view(-55,10);
axis off;
Remix Tree