- /
-
Lotka-Volterra Rainbow Pyramid
on 25 Oct 2021
- 7
- 35
- 1
- 0
- 267
x = rand(100000,2)*0+[0.15 0.15];
dt = 0.01;
a = 0.55;
b = 0.999;
c = 0.999;
d = 0.55;
for i=1:99999
x(i+1,:) = x(i,:) + [(a-b*x(i,2))*x(i,1) (c*x(i,1)-d)*x(i,2)]*dt;
end
patch(x(:,1)-x(:,2),-x(:,2)-x(:,1),1:length(x),'edgecolor','none');
set(gcf,'color','k');
axis equal off;
colormap jet;