• Remix
  • Share
  • New Entry

on 29 Oct 2021
  • 6
  • 12
  • 0
  • 0
  • 279
t=0:pi/10:3*pi;
G=201
G = 201
Y=cosh(t);
X=sin(t).*tanh(t);
cmap=[pink;autumn;gray;jet;autumn;flag;prism];
size(cmap)
ans = 1×2
2048 3
for j=.1:.1:2
a=0;
if rem(round(j*10),2)
a=pi/20;
end
[x,y] = pol2cart(t+a,j);
for i=1:length(t)
patch(X*j/10+x(i),Y*j/10+y(i),cmap(i*G))
hold on
end
end
Index exceeds the number of array elements. Index must not exceed 6144.
axis equal off
axis([-1.1 1.1 -1.1 1.1])
Remix Tree