How can I solve a differential equation on non-fixed interval?
Show older comments
I am trying to solve a first order ODE with such conditions: y(0) = 0, y(x_0)=1,
where x_0 must be determined with the last condition. Therefore I have to be solving the ODE until y=1. But MATLAB requires setting of all integration interval before solving.
The trivial way is to change the interval on fixed step each time when y does not achieve 1 and to solve the equation again. But this method takes a lot of time for calculations.
Is there any different way to solve a ODE on non-fixed interval?
Accepted Answer
More Answers (0)
Categories
Find more on Ordinary Differential Equations 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!