Inverse of several different matrices
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Atreyu91
am 25 Aug. 2015
Kommentiert: Romeo rofhiwa thonga
am 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 Kommentar
Akzeptierte Antwort
Walter Roberson
am 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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!