How do you integrate a set of matrix equations?
조회 수: 2 (최근 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!