How to concatenate rows ?

61 Ansichten (letzte 30 Tage)
Andre
Andre am 25 Apr. 2014
Beantwortet: Azzi Abdelmalek am 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é

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

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

Community Treasure Hunt

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

Start Hunting!

Translated by