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!