필터 지우기
필터 지우기

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

조회 수: 13 (최근 30일)
Alex Brown
Alex Brown 2017년 7월 5일
편집: Astik Sachan 2017년 7월 5일
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