• Remix
  • Share
  • New Entry

on 21 Oct 2021
  • 39
  • 23
  • 0
  • 0
  • 278
L=@linspace;
M=@movmean;
R=@randi;
n=300;
p=10;
r=R(p,n,1);
T=L(0,2*pi,p+1);
for i=1:p
j=r==i;
t=L(T(i),T(i+1),nnz(j));
x(j)=cos(t);
y(j)=sin(t);
end
hold
Current plot held
for i=1:n-1
a=x(i);
b=x(i+1);
c=y(i);
d=y(i+1);
l=[L(a,(a+b)/4,p),L((a+b)/4,b,p)];
m=[L(c,(c+d)/4,p),L((c+d)/4,d,p)];
plot(M(l,p),M(m,p),'LineW',R(3));
end
camva(3)
Remix Tree