Code to generate motion of undamped oscillations of simple pendulum
Objective: 1) Animation link https://drive.google.com/file/d/1kuC6S0UNmZov809SVCrcV8U2c0s_9Hts/view?usp=sharing 2a). Plot of undamped oscillations of simple pendulum 2b)Code to generate undamped motion of simple pendulum clear allclose allclc %Inputb=0;g=9.81;l=0.5;m=0.05; %initial conditiontheta_0=[0;5]; %time pointst_span=linspace(0,10,500);…