3-D matrix transpose
조회 수: 208 (최근 30일)
이전 댓글 표시
Hello
I have a 3-D matrix and I want to take the transpose of each individual vector. This is what I want to do:
transpose(A(:,:,1) transpose(A(:,:,2) ... up to (:,:,25)
Would anybody be able to help with this?
댓글 수: 0
채택된 답변
Sean de Wolski
2014년 11월 12일
permute(A,[2 1 3])
permute is the way to generalize transpose-like operations in ND.
댓글 수: 1
Yurii Iotov
2019년 3월 25일
편집: Yurii Iotov
2019년 3월 25일
If I need to transpose Nd Matrices with complex numbers I need to conjugate before. Am I right?
permute(conj(A),[2 1 3])
추가 답변 (1개)
Ray Garatsa
2021년 10월 26일
B=pagetranspose(A)
This is an easy way of doing it. check the Matlab documentation for a better explanation. MathWorks pagetranspose
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!