Challenge 2ODE pendulum
Objective: %MATLAB program to solve 2nd Order Differential Equation using ode45 %Motion of simple pendulum with damping clear all close all clc %Syntax of ode45 with dependent var Y and independent var T %[Tsol, Ysol]=ode45(@(t,y) ode_fun(t,y), t_span, y_0) %defining constants b=0.05; %damping coeff g=9.81; %gravity in m/s^2 l=1;…