For an idealized pendulum with massless arm of length L, traveling along a vertical circular track of radius R with constant angular velocity W, this program will integrate the equations of motion given the above parameters and initial conditions, and will then animate the system, tracing the pendulum's path.
Good demo for introductory dynamics or numerical integration.
Dmitry Savransky (2020). Pendulum on Circular Track (https://www.mathworks.com/matlabcentral/fileexchange/20006-pendulum-on-circular-track), MATLAB Central File Exchange. Retrieved .