• Remix
  • Share
  • New Entry

on 11 Oct 2021
  • 9
  • 41
  • 0
  • 0
  • 274
x=linspace(0,2*pi);
y=x+2*sin(x);
h1=plot(x,y,LineWidth=3);
k=40;
c=flipud(fliplr(hot(2*k)));
for n=1:k
h2=copyobj(h1, gca);
t=hgtransform;
set(h2,Parent=t,Color=c(n,:))
th1=n*2*pi/k;
r1=makehgtform(ZRotate=th1);
r2=makehgtform(YRotate=th1);
set(t,Matrix=r1*r2);
end
axis equal off
set(gcf,Color="k")
Remix Tree