Simulating Simple Pendulum in MATLAB
Objective: The following code is for simple pendulum in MATLAB.It plots displacement and velocity as function of time as well as generates a video showing animation of simple pendulum. Youtube Link for animation - https://www.youtube.com/watch?v=SuJQ2m9mW-U&feature=youtu.be clear all close all clc b=0; g=9.81; l=1;…