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 日

3 投票

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 件)

ROYGBIV
ROYGBIV 2021 年 10 月 26 日

3 投票

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

カテゴリ

質問済み:

2014 年 11 月 12 日

回答済み:

2021 年 10 月 26 日

Community Treasure Hunt

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

Start Hunting!

Translated by