One ode, two differential equations
显示 更早的评论
I have 2 differential equation that i want to solve in the same ode. I only have the initial value of the first equation and the answer of it will be the initial value of the second differential equation.
Is it possible and how ?
6 个评论
Star Strider
2020-1-31
With only the information you have provided thus far, it is not possible to provide any Answer.
Does the solution of the first differential equation at every time value always provide a value that the second differential equation requires?
Raed AL Hassanieh
2020-2-1
编辑:Raed AL Hassanieh
2020-2-1
Ioannis Andreou
2020-2-1
I don't quite understand.
You have the differential equations

The solution for y1(t) (given any initial value) aswell as dy1/dt are functions of t. They cannot be initial values.
Raed AL Hassanieh
2020-2-1
Raed AL Hassanieh
2020-2-1
Raed AL Hassanieh
2020-2-1
回答(1 个)
Ioannis Andreou
2020-2-1
0 个投票
As far as I can tell from your code, the righthanded side of your differential equations is the same. Meaning you have the system

. Thus you can simply only solve y1, the solution of y2 is then y2(t) = y1(t-t1).
类别
在 帮助中心 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!