How to solve ODE's in Matrix Form?
Ältere Kommentare anzeigen
Hi,
I have a set of equations like this and am clueless on how to solve on MATLAB and hope someone can help. The intial conditions are P0(0) = 1; P1(0) = 0.

4 Kommentare
James Tursa
am 26 Feb. 2019
The ode45 doc has examples for vector variables. Have you looked at those yet?
Benjamin Watson
am 26 Feb. 2019
James Tursa
am 26 Feb. 2019
Please post what you have tried and what problems you are having with your code and we can help.
Benjamin Watson
am 27 Feb. 2019
Antworten (1)
Star Strider
am 26 Feb. 2019
0 Stimmen
For a linear system such as yours, another option is the expm (link) function. It is the
term in the solution for a linear system:


where
= expm(A*t).
This requires a loop for the inputs and for values of ‘t’, however that is more of an inconvenience than a problem.
Kategorien
Mehr zu Ordinary Differential Equations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!