Matrix product along one of the dimensions of 3D array
조회 수: 9 (최근 30일)
이전 댓글 표시
Dear all,
I wonder whether there is simple and elegant way (avoiding FOR loops) to compute a matrix product of multidimensional (e.g. 3D) array along one of the dimensions: for instance there is a T(2x2x1000) array, and one would like to compute T(:,:,1)*T(:,:,1)*...*T(:,:,1000).
Thank you!
댓글 수: 0
답변 (3개)
Seth Hillery
2024년 2월 13일
If you're using release R2020b or later, take a look at the pagemtimes function introduced in that release.
댓글 수: 1
참고 항목
카테고리
Help Center 및 File Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!