3-D matrix transpose

299 次查看(过去 30 天)
richard
richard 2014-11-12
回答: Ray Garatsa 2021-10-26
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?

采纳的回答

Sean de Wolski
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
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
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

类别

Help CenterFile Exchange 中查找有关 Matrix Operations and Transformations 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by