How do you integrate a set of matrix equations?
8 次查看(过去 30 天)
显示 更早的评论
I have a set of 4 matrix equations (corresponding to a set of 12 equations) that I would like to integrate with some matrix initial conditions [3 x 3]. I don't think something like ode45 could accomplish this, as the initial conditions must be an array.
0 个评论
采纳的回答
James Tursa
2015-7-26
Reshape them as vectors to pass into ode45. Then in your derivative routine, reshape back to matrix form to do your matrix calculations. Then reshape the matrix result back to a vector to pass out as an output.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Ordinary Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!