Simulation of Simple Harmonic Motion of simple pendulum
Objective: link:https://drive.google.com/file/d/1oU0r-RzJK8wXoEGOyF6b4yBpZai6EYi6/view?usp=sharing clear all close all clc b=0.5; g=9.81; l=1; m=1; %initial conditions theata_0=[3;-1.5]; %time points t_span = linspace(0,20,500); %solve ode [t,results] = ode45(@(t,theata) ode_func(t,theata,b,g,l,m), t_span, theata_0); plot(t, results(:,1))…