How to concatenate matrix row wise to get a column vector
12 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Emmanuel
le 19 Nov 2016
Réponse apportée : Star Strider
le 19 Nov 2016
I have a matrix
A = [1,2,3,4
5,6,7,8
9,10,11,12]
How do I make it into a column vector by concatenating the rows, such that I get B = [1,2,3,4,5,6,7,8,9,10,11,12]
Thanks!
0 commentaires
Réponse acceptée
Plus de réponses (1)
Star Strider
le 19 Nov 2016
Another approach:
B = A';
B = B(:)'
B =
1 2 3 4 5 6 7 8 9 10 11 12
0 commentaires
Voir également
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!