# Question: i need help with the matlab code consider the frictionless...

###### Question details

I need help with the Matlab code

Consider the frictionless rod, i.e. *π½**=0*Ξ²=0.
The equation of motion becomes

(d^2 r)/(dt^2 )-mΟ^2 r=-mg sinβ‘(Οt)

with g=9.81 m/s^2 and a constant angular speed Ο.

The rod is initially horizontal, and the initial conditions for the bead are r(0)=r_0 and rβ² (0)=v_0.

Suppose π=2, graph the solutions, π(π‘), for the initial conditions given here: π_0=0 and initial velocities of π£_0=2.40, 2.45, 2.50, and the initial velocity (0) you found in part B). Use 0β€π‘β€5