Solving Second order ODE using MATLAB
Objective: Here we are solving a Second order ODE which is involving in a Simple Pendulum. Whenever we have a higher order ODE we need to brake it into first order ODE. It can be solved analytically as shown. Below is the solution using MATLAB clear all close all clc %constants b=.05; g=9.81; l=1; m=0.1; % initial condition theta_0…