change matrix form and arrangement

조회 수: 1 (최근 30일)
mohammed hussein
mohammed hussein 2021년 1월 20일
댓글: mohammed hussein 2021년 1월 20일
Hi all
i would like to get some help in this problem
i have very large matrix like this small example
A1=[1.1 2.1 3.2 4.1 5.3 6.2]
A1=
1.1 2.1 3.2 4.1 5.3 6.2
i want to change A1 to be like A2
A 2=
1.1 3.2 5.3
2.1 4.1 6.2
i maen the second number in A1 be under the first one and so on for complete matrix
thank you very much for helping

채택된 답변

KALYAN ACHARJYA
KALYAN ACHARJYA 2021년 1월 20일
reshape(A1,[2,3])

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by