Inverse of several different matrices
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Atreyu91
il 25 Ago 2015
Commentato: Romeo rofhiwa thonga
il 25 Ago 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 Commento
Risposta accettata
Walter Roberson
il 25 Ago 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Logical in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!