• Remix
  • Share
  • New Entry

  • haz

  • /
  • 20rnado

on 4 Oct 2021
  • 12
  • 88
  • 1
  • 0
  • 244
x = linspace(0, 20*pi);
y = 0.5*x.*sin(x);
h1 = plot(x, y, LineWidth=4);
k = 20;
c = turbo(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
axis equal off
Remix Tree