Runge Kutta 4 for slingshot simulation.
Show older comments
Hey everyone, I would like some help with using Runge Kutta 4 (or if there's a better a way) to solve these differential equations. (image attached) I wonder if it's possible to solve it using RK4?
1 Comment
Abbas Taha
on 6 Jan 2016
Answers (1)
Torsten
on 6 Jan 2016
0 votes
help ode45
Best wishes
Torsten.
4 Comments
Abbas Taha
on 6 Jan 2016
It means:
Look at the documentation of the MATLAB ODE-solver suite:
It contains examples on how to solve systems of ordinary differential equations like yours.
The name of one of these solvers is "ode45".
Best wishes
Torsten.
Abbas Taha
on 6 Jan 2016
Torsten
on 7 Jan 2016
If you want to solve only 4 ODEs, every solver of the ODE-suite will be fine if you set RelTol and AbsTol to small enough values.
And I'm convinced that every solver of the ODE-Suite will behave better than a self-programmed Runge-Kutta.
Best wishes
Torsten.
Categories
Find more on Runge Kutta Methods 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!