Simulation of a simple pendulum using Ordinary differential Equation
Objective: Here, a simple pendulum is modelled using a second order ordinary differential equation and simulated using MATLAB. The same equation for spring-mass-damper system can be used to model the pendulum. Therefore the equation is `(d^2theta)/dt^2+b/m(d theta)/dt+g/l sintheta =0` where b--> damping coefficient=0.05 …