Solving Matrix differential equations
47 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I'm looking to solve a system of the type dxdt=A*x where dxdt and x are 1xn vectors and A is an nxn matrix. I know I can use something like ode45 to solve each row individually, but figured matlab must have a way of solving such systems. Thanks in advance!
0 Commenti
Risposta accettata
Fangjun Jiang
il 17 Nov 2011
dxdt and x should be n by 1 vectors.
Yes. ode45 or other ode solver can solve the system at once. run odeexamples.m to see various example.
You might consider use ss() if A is time-invariant matrix.
1 Commento
Nikolaos
il 31 Ago 2012
where can we find odeexamples.m ? was that helpfull? I am having the same problem..
thank you in advance
Più risposte (1)
Abe
il 23 Dic 2015
Modificato: Abe
il 23 Dic 2015
Go down to "Solve Differential Equations in Matrix Form" http://www.mathworks.com/help/symbolic/solve-a-system-of-differential-equations.html?refresh=true
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!