Simulation of Pendulum using Matlab
Objective: Video of pendulum simulation https://youtu.be/tvoIqiDyPTc or https://www.youtube.com/watch?v=tvoIqiDyPTc&feature=youtu.be CODE clc; clear all; close all; %intial condition theta_i=[0,3]; %inputs b=0.5; %damping coefficient g=9.81; l=1; %length of pendulum in m m=1; %mass of bob in kg %solving Odnary differential equation…