• Remix
  • Share
  • New Entry

  • KSSV

  • /
  • Lissajous figures

on 8 Oct 2021
  • 72
  • 158
  • 0
  • 0
  • 234
t=linspace(0,2*pi,100);
ph=[0 1/4 1/2 3/4 1]*pi;
a=[1 1 1 2 3 3 4 5];
b=[1 2 3 3 4 5 5 6];
cnt=0;
for k=1:8
for i=1:5
aa=a(k)*t;
bb=b(k)*t+ph(i) ;
x=cos(aa);
y=sin(pi/2+bb);
cnt=cnt+1;
subplot(8,5,cnt);
plot(y,x,'Color','k','LineWidth',1)
axis equal off
end
end
Remix Tree