change matrix form and arrangement

1 visualización (últimos 30 días)
mohammed hussein
mohammed hussein el 20 de En. de 2021
Comentada: mohammed hussein el 20 de En. de 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

Respuesta aceptada

KALYAN ACHARJYA
KALYAN ACHARJYA el 20 de En. de 2021
reshape(A1,[2,3])

Más respuestas (0)

Categorías

Más información sobre Matrix Indexing en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by