• Remix
  • Share
  • New Entry

on 11 Oct 2021
  • 5
  • 18
  • 0
  • 0
  • 256
figure('color','w')
axis off
hold
Current plot held
rng(1879)
a=2*rand(2)-1;
b=[0;2*rand];
c=2*rand(2)-1;
d=[0;rand];
e=2*rand(2)-1;
f=[0;rand];
x=[0;0];
for i=1:2e4
n=rand;
if n<=.85
x=a*x+b;
elseif n<=.94
x=c*x+d;
elseif n<=1
x=e*x+f;
end
plot(x(1),x(2),'.','markeredgecolor',[n 2.5*n*sqrt(1-n) 1-n])
end
Image
Remix Tree