Solving A System of Equations Using ODE45

So I was having trouble solving differential equations in ODE45. The system is as follows:
I was not sure how to proceed since the first equation contains an integral of the V_dot(t). Any help would be greatly appreciated.

 Accepted Answer

Torsten
Torsten on 23 Nov 2016
You have two coupled ODEs for V_p and x. If you want to apply numerical methods (ODE15S, e.g.) for the solution, I don't see a problem.
Maybe starting at t=0 is not a good idea since powers of t appear in the denominator when you solve the first equation for xdot.
Best wishes
Torsten.

1 Comment

Yes, I actually ended up using Euler's method instead of ODE45 and it appears to be working nicely. Hopefully Runge-Kutta will produce even better results. Thanks for the reply.

Sign in to comment.

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!