How can i flip a (M x N) matrix to (N x M)?
24 次查看(过去 30 天)
显示 更早的评论
i want to reverse the columns and lines in a matrix how can i do it?
0 个评论
采纳的回答
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' ;
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Cell Arrays 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!