How to concatenate rows ?

9 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)

Community Treasure Hunt

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

Start Hunting!