2nd ORDER ODE - Pendulum Challenge
Objective: 1. YOUTUBE LINK FOR ANIMATION: https://youtu.be/H6TOeBUm3ww 2. MATLAB CODE. function [theta_dot] = diff_eqns(t,theta,L,m,b,g) % Function returning a system of 2 first order ODEs, stored in theta_dot % array. theta_dot=zeros(2,1); theta_dot(1)=theta(2); theta_dot(2)=(-b/m)*theta(2) - (g/L)*sin(theta(1)); end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%…