Effacer les filtres
Effacer les filtres

How to concatenate rows ?

64 vues (au cours des 30 derniers jours)
Andre
Andre le 25 Avr 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é

Réponse acceptée

Azzi Abdelmalek
Azzi Abdelmalek le 25 Avr 2014
reshape(A',1,[])

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by