• Remix
  • Share
  • New Entry

on 10 Oct 2021
  • 6
  • 25
  • 0
  • 0
  • 267
figure('Color',[0 0 0]);
x = linspace(2, 20*pi);
y = 0.6*x.*tan(x);
h1 = plot(x, y, LineWidth=5);
k = 55;
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
Image
Remix Tree