system of ode get values at last t
3 ビュー (過去 30 日間)
古いコメントを表示
I have a system of 15 odes and am solving them with ode15s. I want to display and use the values at the last t of each ode (use for initial conditions). Is there some way to do this? Im not sure how to be able to tell how many time points ode15s evaluates at. Thanks!
0 件のコメント
採用された回答
Star Strider
2014 年 10 月 20 日
To get the last values of the ‘t’ vector and ‘y’ matrix, use ‘end’ to define them:
t_final = t(end);
y_final = y(end,:);
その他の回答 (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!