Simultaneous solving of the system of ordinary differential equations
14 ビュー (過去 30 日間)
古いコメントを表示
Dear friends
I have two sets of ODE system (A & C) that need to be solved simultaneously. For example, the system A is the original ODE system, in which there is a variable B that must be calculated from the ODE system C. How should this problem be coded?
Thank you for your cooperation.
0 件のコメント
採用された回答
James Tursa
2018 年 3 月 19 日
The doc for ode45 shows examples of 2nd order ODE systems. E.g., look at this link
and then scroll down to the "van der Pol" equation example. That has two variables, y1 and y2. Follow that example for your multiple variable problem. If you have problems setting things up, post the code you tried and we can help you fix it up.
2 件のコメント
James Tursa
2018 年 3 月 19 日
編集済み: James Tursa
2018 年 3 月 19 日
It is not clear to me from looking at your files how the two state vectors y for these systems are related. In one case you have a 7-element y vector and in the other case you have an 8-element y vector, and the Texo and Tend values are apparently just elements from these y vectors. Are these two y vectors related in some way? What is the definition of these state vectors for these two systems?
その他の回答 (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!