how to reshape this matrix

조회 수: 8 (최근 30일)
Jassy
Jassy 2019년 6월 2일
댓글: Jassy 2019년 6월 2일
A = [ 1 2 3 4 5 6 7 8 9 10; 11 12 13 14 15 16 17 18 19 20;]
I want reshape to
1 2;
3 4;
5 6;
7 8;
.
.
.
19 20;
thank you sir.

채택된 답변

James Tursa
James Tursa 2019년 6월 2일
result = reshape(A.',2,[]).'
  댓글 수: 1
Jassy
Jassy 2019년 6월 2일
Thank you James Tursa.
It's help me

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Algebra에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by