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.

 采纳的回答

Torsten
Torsten 2016-11-23
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 个评论

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.

请先登录,再进行评论。

更多回答(0 个)

类别

标签

Community Treasure Hunt

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

Start Hunting!

Translated by