How can I multiply N dimensional matrices
Mostrar comentarios más antiguos
I am trying to multiply a 3x3xn matrix with a 3x4xn matrix.
I tried a for loop but it says that the matrix dimensions do not agree.
The new matrix that I need is just the product of the first A(:,:,i)*B(:,:,i) which should work but in my case it isn't
Respuesta aceptada
Más respuestas (2)
James Tursa
el 16 de Jul. de 2020
Editada: James Tursa
el 16 de Jul. de 2020
1 voto
Other options from the FEX:
The first one is m-code, and the last two are mex routines that require a C compiler.
Steven Lord
el 17 de Sept. de 2020
0 votos
1 comentario
James Tursa
el 17 de Sept. de 2020
Finally! Guess I can now stop worrying about updating MTIMESX.
Categorías
Más información sobre Shifting and Sorting Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!