2nd Order ODE - Pendulum
Objective: This project aims to represent the motion of a undamped pendulum using 2nd order ODE the equation for this is The following is the MatLab Program: clear all close all clc %Gravity g = 9.81; l=1; %mass m = 0.1; %w w = g/(l); % THe ODE f = @(t,theta) [theta(2);-(w)*sin(theta(1))]; %Initial Conditions init =…