3-D matrix transpose
    89 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    richard
 le 12 Nov 2014
  
    
    
    
    
    Réponse apportée : ROYGBIV
 le 26 Oct 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?
0 commentaires
Réponse acceptée
  Sean de Wolski
      
      
 le 12 Nov 2014
        permute(A,[2 1 3])
permute is the way to generalize transpose-like operations in ND.
1 commentaire
  Yurii Iotov
 le 25 Mar 2019
				
      Modifié(e) : Yurii Iotov
 le 25 Mar 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])
Plus de réponses (1)
  ROYGBIV
 le 26 Oct 2021
        B=pagetranspose(A)
This is an easy way of doing it. check the Matlab documentation for a better explanation. MathWorks pagetranspose
0 commentaires
Voir également
Catégories
				En savoir plus sur Matrix Operations and Transformations dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



