can I return more than one argument in the "odefun" when called from ode45
1 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
Steven Lord
2019-9-17
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!