Inverse of several different matrices
조회 수: 1 (최근 30일)
이전 댓글 표시
Can anyone please show me how to perform an inverse of several matrices in a cell array in MATLAB?
for example if I have a cell array with six different 5x5 matrices:
A = 5x5 double, 5x5 Double, 5x5 Double, 5x5 Double, 5x5 Double, 5x5 Double
How would I calculate the inverse of each 5x5 Double matrix?
So far I know that
B = inv(A{1,1});
will give the inverse of the first matrix, but I cannot figure out how to inverse the other matrices at the same time.
채택된 답변
Walter Roberson
2015년 8월 25일
- There is no call that will inverse all of the matrices in one step.
- loops. cellfun.
- It is very unlikely that you should use inv() . See http://uk.mathworks.com/matlabcentral/answers/217692-are-there-any-function-calculating-matrix-inverse-with-hints#answer_179763 and http://uk.mathworks.com/matlabcentral/answers/233537-calculate-c-a-b-i-for-each-cell-in-b-when-b-is-a-cell-array
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!