Simultaneous solving of the system of ordinary differential equations
3 次查看(过去 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!