- /
-
102 mod 500
on 4 Oct 2022
- 7
- 239
- 8
- 0
- 211
figure;
mp=500;
ag=0:2*pi/mp:2*pi;
xV=cos(ag);
yV=sin(ag);
tm=102;
for i=0:mp
ptO=[xV(mod(i,mp)+1);yV(mod(i,mp)+1)];
rm=mod(i*tm,mp);
pt=[xV(rm+1);yV(rm+1)];
ptsD=[ptO,pt];
plot(ptsD(1,:),ptsD(2,:),'k');hold on
axis square
axis off
end