- /
-
Cutting a Hole in the Wall with a Blue Laser
on 6 Nov 2023
- 5
- 20
- 0
- 0
- 150
This entry contains code from the blog post "Contest Animations with INTERP1" (https://blogs.mathworks.com/community/2023/11/06/contest-animations-with-interp1/).
drawframe(1);
function drawframe(f)
theta = interp1([0 48],[0 2*pi],f);
plot(cos(theta),sin(theta),".", ...
MarkerSize=24)
t = linspace(0,2*pi);
line(cos(t),sin(t))
axis square
axis([-2 2 -2 2])
end