Solve system of linear ODEs with variable coefficients
2 ビュー (過去 30 日間)
古いコメントを表示
I'm trying to solve a system of three linear differential equations with one important caveat: one of the terms assumes one of three values depending on the state of the other variables.
G(t) switches values between and depending on, for instance, whether (X-Y) is positive or negative. Can I obtain numerical solutions to this sytem in MATLAB, without having to go through Simulink?
0 件のコメント
採用された回答
John D'Errico
2018 年 11 月 19 日
Why not? Yes, you can. Use tools like ode45, etc. Read the documentation for ode45, and you will find examples of use. Depending on the parameters in your equations, a stiff solver may be necessary, such as ode15s or ode23s.
2 件のコメント
Ahmad Gad
2021 年 3 月 5 日
What if I am looking for symbolic solution? Can MATLAB manage this anyway instead of me solving them with my hands? Thanks!
その他の回答 (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!