Solving second order ODEs Using MATLAB
Objective: % solving_2nd_order_ODE clear all close all clc % inputs % Damping coefficent (N*Sec/M) b = 0.05; % Gravity (M/sec^2) g = 9.81; % Length (M) l = 1; % Mass (kg) m = 1; % initial condition % Angular Displacement (rad) and Angular Velocity (rad/sec) Angular_Displacement = 0; Angular_Velocity = 3; theta_0 = [0;3]; %…