can I return more than one argument in the "odefun" when called from ode45
Mostrar comentarios más antiguos
I am attempting to integrate a differential equation for a system manifesting state changes, such that the prior state must be passed to "odefun" in each call executed by ode45. Is it possible to allow odefun to return more than one variable (after the estimated numerical derivative) to facilitate this? Or is there another alternative?
Thanks.
Respuestas (1)
Steven Lord
el 17 de Sept. de 2019
1 voto
What you've described sounds not like an ordinary differential equation (ODE) but like a delay differential equation (DDE). This documentation page describes the functions available for solving DDEs.
Categorías
Más información sobre Ordinary Differential Equations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!