change matrix form and arrangement

1 Ansicht (letzte 30 Tage)
mohammed hussein
mohammed hussein am 20 Jan. 2021
Kommentiert: mohammed hussein am 20 Jan. 2021
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

Akzeptierte Antwort

KALYAN ACHARJYA
KALYAN ACHARJYA am 20 Jan. 2021
reshape(A1,[2,3])

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by