How can i flip a (M x N) matrix to (N x M)?
16 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Alex Brown
le 5 Juil 2017
Modifié(e) : Astik Sachan
le 5 Juil 2017
i want to reverse the columns and lines in a matrix how can i do it?
0 commentaires
Réponse acceptée
Astik Sachan
le 5 Juil 2017
Modifié(e) : Astik Sachan
le 5 Juil 2017
There are two ways to do it:-
A = [1 ,2 ; 3, 4] ;
Flipped_A = transpose(A) ;
2. Put a single-quote to the end of variable
A = [1 ,2 ; 3, 4] ;
Flipped_A = A' ;
0 commentaires
Plus de réponses (1)
Torsten
le 5 Juil 2017
https://de.mathworks.com/help/matlab/ref/transpose.html
Best wishes
Torsten.
0 commentaires
Voir également
Catégories
En savoir plus sur Logical 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!