How do you integrate a set of matrix equations?

3 ビュー (過去 30 日間)
Jordan Falgoust
Jordan Falgoust 2015 年 7 月 25 日
回答済み: James Tursa 2015 年 7 月 26 日
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.

採用された回答

James Tursa
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 件)

カテゴリ

Help Center および File ExchangeOrdinary Differential Equations についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by