Academic help online
Solve the equations of motion for the spring-pendulum system in the previous problem usingmatlab ODE45 and plot the pendulum angle θ(t) and pendulum length r(t) versus
time. Assume that the pendulum is released with initial conditions where l0 is the rest length of the spring. Let m = 1kg, l0 = 0.1m, and k = 2 N/m. Be sure to label
your plots with units and include a legend.
Academic help online