Accessing the value in each successful time step in ode45 solver
18 ビュー (過去 30 日間)
古いコメントを表示
I am trying to solve a second order ode with ode45 solver. I would like to get the value of the state variable in each successful time step.(by successful I mean the solver is based on an adaptive time step). Is there a way to get the value of the state variable in each successful time step while the solver is running and pass it to another function for a conditional check? Is it possible to save the values of the state variable in each successful time step and make it available to the workspace for further manipulation?
0 件のコメント
回答 (2 件)
Jan
2013 年 9 月 25 日
編集済み: Jan
2013 年 9 月 25 日
The output of the ODE integrators contain the value of the state variable in each time step already. So why do you want something else?
Passing a variable for a "conditional check" is not clear. What kind of reaction to this check are you thinking of? Where should this check be considered?
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!