Inverse of several different matrices
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Atreyu91
el 25 de Ag. de 2015
Comentada: Romeo rofhiwa thonga
el 25 de Ag. de 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 comentario
Respuesta aceptada
Walter Roberson
el 25 de Ag. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!