Simulate the pendulum motion by solving the second order ode of a simple pendulum using MATLAB
Objective: Simulate the pendulum motion by second order ode of a simple pendulum using MATLAB: Explanation: The equation of motion of a simple pendulum with damping is given as we start the program with defining the inputs such as b(damping coeffecient),g(gravity),l(length of the string),m(mass of the bob of the pendulum).after that…