Simulating a pendulum
Objective: 1.Pendulum Animation: https://youtu.be/7hg_ZpsE39E 2.Code: Pendulum_animation_main.m: clear all close all clc %setting up input parameters: %initial conditions: disp0 = 0; vel0 = 3;%(radians per second) b = 0.05; m = 1; L = 1; g = 9.81; %defining the time span: t = [0 20]; %defining initial conditions:…