How to calculate inverse of 3d array matrices with size 3*3*18 ?
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
M
el 17 de Mayo de 2022
Respondida: Steven Lord
el 17 de Mayo de 2022
How to calculate inverse of 3d array matrices with size 3*3*18 ?
0 comentarios
Respuesta aceptada
KSSV
el 17 de Mayo de 2022
A = rand(3,3,18) ;
[m,n,p] = size(A) ;
B = zeros(m,n,p) ;
for i = 1:p
B(:,:,i) = inv(A(:,:,i)) ;
end
0 comentarios
Más respuestas (1)
Steven Lord
el 17 de Mayo de 2022
If you're using release R2022a or later you could use the pageinv function. But if you're planning to invert these matrices in order to multiply them by something else to solve a system of equations, I would advise you to use pagemldivide (also release R2022a) instead of using both pageinv and pagemtimes (release R2020b.)
0 comentarios
Ver también
Categorías
Más información sobre Linear Algebra en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!