Simulation of the transient behaviour of a simple pendulum and creation of an animation of its motion
Objective: %Solving a second order linear ODE and creating a pendulum animation clear all close all clc %input values as provided b=0.05; g=9.81; l=1; m=1; %intial conditions thetha_0=[0;3]; %time points t_span=linspace(0,20,500); %the function ode_func has the ode that governs the motion of the pendulum %results is a 2 column solution…