How to solve the following differential equation in Matlab?
Show older comments
second deriviative of θ wrt time= (ω^2 .a)/b cos(θ-ωt)-g/bsinθ t=2.00 s,a=0.5 m,b=1 m,g=9.8 m⁄(s^2.)
Answers (1)
The formulation
y1'=y2
y2'=omega^2*a/b*cos(y1-omega*t)-g/b*sin(y1)
and ODE45 will solve your problem.
Best wishes
Torsten.
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!