Use values of matrix in ode function

조회 수: 2 (최근 30일)
Teo Protoulis
Teo Protoulis 2019년 5월 19일
댓글: Sulaymon Eshkabilov 2019년 5월 20일
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
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 CenterFile Exchange에서 Ordinary Differential Equations에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by