Inverse of several different matrices
1 view (last 30 days)
Show older comments
Atreyu91
on 25 Aug 2015
Commented: Romeo rofhiwa thonga
on 25 Aug 2015
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.
1 Comment
Accepted Answer
Walter Roberson
on 25 Aug 2015
- 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 Comments
More Answers (0)
See Also
Categories
Find more on Logical in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!