How to concatenate rows ?

61 visualizzazioni (ultimi 30 giorni)
Andre
Andre il 25 Apr 2014
Risposto: Azzi Abdelmalek il 25 Apr 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é

Risposta accettata

Azzi Abdelmalek
Azzi Abdelmalek il 25 Apr 2014
reshape(A',1,[])

Più risposte (0)

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by