Â
Create a simulink model of the nonlinear equation (1) and obtaina plot from 0 to 3 seconds of the
pendulum problem. Be sure to include a scope box so thedisplacement plot can be viewed.
d2q/dt2 + (g/L)*sinq = 0
q = angle of displacement of the pendulum [rad]
g = gravitational constant 9.81 [m/sec2 ]
L = pendulum length [m]
     The sinq term introduces thenonlinearity. This makes the solution difficult. To simplify theproblem,       equation is linearizedby using the approximation that sin q = q. This is a validapproximation for small angles of q only. Run
and create a scope plot for displacement vs time forapproximately 5 cycles of a 0.5 m long pendulum that has a startingangular displacement of 10 degrees and an initial angular velocityof – 10 m/sec. Note use the linearized equation.
 Â