• Remix
  • Share
  • New Entry

on 19 Oct 2021
  • 2
  • 75
  • 0
  • 0
  • 278
T(:,:,1)=[0 0 0; 0 0.16 0];
T(:,:,2)=[0.85 0.04 0; -0.04 0.85 1.6];
T(:,:,3)=[0.2 -0.26 0; 0.23 0.22 1.6];
T(:,:,4)=[-0.15 0.28 0; 0.26 0.24 0.44];
P=[0;0];
for i=1:1:10000
I=sum(rand>=cumsum([0,0.01,0.85,0.07,0.07]));
P(:,i+1)=T(:,1:2,I)*P(:,i)+T(:,3,I);
end
plot(P(1,:),P(2,:),'g.')
axis image
Remix Tree