• New Entry

Circular Pattern

Juan Villacrés on 25 Oct 2021
  • 40
  • 40
  • 2
  • 0
  • 207
t=0:pi/10:2*pi;
X=sin(t);
Y=cos(t);
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),[0 0 0])
hold on
end
end
axis equal off
axis([-1.1 1.1 -1.1 1.1])
Remix Tree