Simple Pendulum with Drag
Objective: %THIS IS A PROGRAM FOR SHOWING TRANSIENT BEHAVIOUR OF THE SIMPLE PENDULUM %with the ODE solving in the end section of the code %video at https://www.youtube.com/watch?v=hlqNrrHMHEU clear all close all clc %input constants b=0.05; g=9.81; l=1.5; m=0.2; %intial conditions[rad,rad/s] theta_0=[0;3]; %time conditions t_span=linspace(0,20,500);…