How to concatenate rows ?

59 visualizaciones (últimos 30 días)
Andre
Andre el 25 de Abr. de 2014
Respondida: Azzi Abdelmalek el 25 de Abr. de 2014
Hi, there is a "not looping" way to concatenate rows into a 1 line ?
Example:
A=[[ 1 2 3 4 ] ;
[ 5 6 7 8 ] ;
[ 9 10 11 12 ]];
To:
A=[ 1 2 3 4 5 6 7 8 9 10 11 12 ]
Thanks,
André

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 25 de Abr. de 2014
reshape(A',1,[])

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by