• Remix
  • Share
  • New Entry

on 5 Oct 2021
  • 5
  • 21
  • 0
  • 0
  • 236
x = linspace(0, 4*pi);
y = 0.5*x.^2.*sin(x.^2);
h1 = plot(x, y, LineWidth=1);
k = 18;
c = autumn(k);
for n = 1:k
h2 = copyobj(h1, gca);
t = hgtransform;
set(h2,Parent=t,Color=c(n,:))
theta = n*2*pi/k;
rot = makehgtform(ZRotate=theta);
set(t, Matrix=rot);
end
Remix Tree