2 - Pendulum Motion
Objective: In this project, a simple program is created to solve the ODE for a simple pendulum motion, including dumping effects. Youtube Link https:/youtu.be/iVHRLvSZ6zo clear all close all clc %System Parameters m=1; L=1; b=0.5; g=9.81; k=b/m; w=g/L; %Solving a second order differential equation t=[0 20]; theta0=[0 3]; [t,theta]=ode45(@(t,theta)pendulum(t,theta,k,w),t,theta0);…