How to concatenate rows ?

61 views (last 30 days)
Andre
Andre on 25 Apr 2014
Answered: Azzi Abdelmalek on 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é

Accepted Answer

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

More Answers (0)

Categories

Find more on Creating and Concatenating Matrices in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!