Use values of matrix in ode function
2 ビュー (過去 30 日間)
古いコメントを表示
I am using ode45() to solve a differential equation like this:
[t,state] = ode45(@odefun,tspan,0);
Now I want to solve another differential equation:
dy = state - 4*y
which uses the matrix state that is computed from the first differential equation. How is it possible for the ode solver to get for each time step one value of the matrix state ?
1 件のコメント
Sulaymon Eshkabilov
2019 年 5 月 20 日
Can you be a bit more explcit with your question and post your 1st differential equation, as well?
From your statement, so far I've understood that with any fixed step solver (odeX of MATALB), it is possible to compute it.
回答 (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!