Simulation of second order ODE of simple pendulum using MATLAB
Objective: 1] Explaination of code for solving 2nd order ODE. 1. First we start the program with \'clear all\'\', \'close all\', clc,. 2. Then we provide the inputs such as length, damping coefficient, mass and acceleration due to gravity as mentioned in the problem statement. 3. Next we define the intial values for displacement…