Solving a second order ODE of a simple pendulum
Objective: This is a program to solve second order ODE of a simple pendulum and simulate its transient motion First, we input all the values. The intial condition which has been input are 0 and 5. i.e., theta = 0 and velocity = 5. The time span is taken from 0 to 10 seconds. ode45 is a syntax used to solve ODE\'s in matlab and the…