How can I multiply N dimensional matrices
조회 수: 30 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
채택된 답변
추가 답변 (2개)
James Tursa
2020년 7월 16일
편집: James Tursa
2020년 7월 16일
Other options from the FEX:
The first one is m-code, and the last two are mex routines that require a C compiler.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Creating and Concatenating Matrices에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!