Solving Matrix differential equations

85 次查看(过去 30 天)
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!

采纳的回答

Fangjun Jiang
Fangjun Jiang 2011-11-17
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 个评论
Nikolaos
Nikolaos 2012-8-31
where can we find odeexamples.m ? was that helpfull? I am having the same problem..
thank you in advance

请先登录,再进行评论。

更多回答(1 个)

Abe
Abe 2015-12-23
编辑:Abe 2015-12-23

类别

Help CenterFile Exchange 中查找有关 Ordinary Differential Equations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by