Solving a non-standard ODE
1 回表示 (過去 30 日間)
古いコメントを表示
I'm trying to solve an ODE like this: xdot = r(t)-x, where r(t) is a pre-calculated signal array of size 100. Let x(0) = 0. How do I set up the ODE? Thanks a lot.
0 件のコメント
回答 (1 件)
Nicolas Schmit
2017 年 12 月 4 日
Create a interpolation of r(t), for example using interp1(), then use the interpolation routine in an ODE solver.
参考
カテゴリ
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!