• Remix
  • Share
  • New Entry

on 6 Oct 2022
  • 30
  • 217
  • 3
  • 2
  • 264
N=5^10;
v=zeros(N,2);
a=4;
c=[[0,0];[1,1];[1,0];[0,1]];
plot(c(:,1),c(:,2),'.',markersize=30);
p=[0,0];
lc=1;
for i=1:N
idx = randi(a);
while idx==(mod(lc+1,a)+1)
idx = randi(a);
end
lc=idx;
s=c(idx,:);
p=(p+s)/2;
v(i,:)=p;
end
plot(v(:,1),v(:,2),'.',markersize=5)
xlim([1,0])
Error using xlim
Limits must be a 2-element vector of increasing numeric values.
ylim([1,0])
axis off
Image
Remix Tree
Load full remix tree