3-D matrix transpose

208 Ansichten (letzte 30 Tage)
richard
richard am 12 Nov. 2014
Beantwortet: Ray Garatsa am 26 Okt. 2021
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?

Akzeptierte Antwort

Sean de Wolski
Sean de Wolski am 12 Nov. 2014
permute(A,[2 1 3])
permute is the way to generalize transpose-like operations in ND.
  1 Kommentar
Yurii Iotov
Yurii Iotov am 25 Mär. 2019
Bearbeitet: Yurii Iotov am 25 Mär. 2019
If I need to transpose Nd Matrices with complex numbers I need to conjugate before. Am I right?
permute(conj(A),[2 1 3])

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Ray Garatsa
Ray Garatsa am 26 Okt. 2021
B=pagetranspose(A)
This is an easy way of doing it. check the Matlab documentation for a better explanation. MathWorks pagetranspose

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by