Use values of matrix in ode function

1 visualización (últimos 30 días)
Teo Protoulis
Teo Protoulis el 19 de Mayo de 2019
Comentada: Sulaymon Eshkabilov el 20 de Mayo de 2019
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 comentario
Sulaymon Eshkabilov
Sulaymon Eshkabilov el 20 de Mayo de 2019
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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Ordinary Differential Equations en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by