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?
댓글 수: 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개)
Torsten
2017년 7월 5일
https://de.mathworks.com/help/matlab/ref/transpose.html
Best wishes
Torsten.
댓글 수: 0
참고 항목
카테고리
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!