Give Output of one ODE to the another ODE simultaneously
2 ビュー (過去 30 日間)
古いコメントを表示
I have the equations as follows
What I have to do is integrate
and supply the output to
sumlatenously at each time step as
gets integrated and this must happen in a speciafic time inteval.
Is there a way to do in code?
Eg - If
gets integrated from 0 to
witha a constant θ and at time
, the value of theta must be taken from intgrated
. This must happen simultaneously.
0 件のコメント
回答 (1 件)
Steven Lord
2020 年 10 月 12 日
Use the "Nonstiff Euler Equations" example on this documentation page as a model for your ODE function.
3 件のコメント
Steven Lord
2020 年 10 月 12 日
You have a system of two differential equations. Solve them simultaneously just like that example solves three differential equations simultaneously.
Alan Stevens
2020 年 10 月 12 日
Your theta equation is independent of x, so you could integrate this separately (in fact, it has an analytical solution), then use the result in the x integration routine.
参考
カテゴリ
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!