How can i flip a (M x N) matrix to (N x M)?

13 次查看(过去 30 天)
i want to reverse the columns and lines in a matrix how can i do it?

采纳的回答

Astik Sachan
Astik Sachan 2017-7-5
编辑:Astik Sachan 2017-7-5
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' ;

更多回答(1 个)

Torsten
Torsten 2017-7-5
https://de.mathworks.com/help/matlab/ref/transpose.html
Best wishes
Torsten.

类别

Help CenterFile Exchange 中查找有关 Cell Arrays 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by