• Remix
  • Share
  • New Entry

on 18 Oct 2021
  • 0
  • 7
  • 2
  • 0
  • 271
% logistic map
% i wanted to make a tree and sky with ocean colour gradient but this is
% what i could get
for l=0.1:0.01:5
i=1;
for r=0.1:0.01:3.86
k(i)=get_r_and_final(r,l);
i=i+1;
end
r=0.1:0.01:5;
plot(r(1:numel(k)),k,'k.');
hold on;
end
axis([0 10 0.01 2]);
set(gca,'Color',[0.8392 0.9882 1]);
function final=get_r_and_final(r,l)
x(1)=l;
for n=1:100;
x(n+1)=r*x(n)*(1-x(n));
end
final=x(101) ;
end
Remix Tree