Pendulum motion - Matlab
Objective: clear all; close all; clc; b=0.5; % damping coeefficient g=9.81; % gravity l=1; % length m=1; % mass of ball %Initial condition initial_cond= [0;3]; % initial displacement , Velocity time_intergral= linspace(0,20,100); [t,result]= ode45(@(time,disp_vel) ode_func(time,disp_vel,b,g,l,m),time_intergral,initial_cond); f=1;…