change matrix form and arrangement

1 visualizzazione (ultimi 30 giorni)
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

Risposta accettata

KALYAN ACHARJYA
KALYAN ACHARJYA il 20 Gen 2021
reshape(A1,[2,3])

Più risposte (0)

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by