• Remix
  • Share
  • New Entry

on 29 Oct 2021
  • 4
  • 20
  • 1
  • 0
  • 253
t=0:pi/10:3*pi;
G=2021
G = 2021
X=sin(t).*tanh(t);
Y=cosh(t);
cmap=[hsv;turbo;jet;autumn;flag;prism;pink];
size(cmap)
ans = 1×2
1024 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),[.8 .3 0])
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 3072.
axis equal off
%axis([-1.1 1.1 -1.1 1.1])
Image
Remix Tree