Combining 2 vectors?
Afficher commentaires plus anciens
Sorry if bit of a silly question but how would i combine 2 vectors as below? Thanks in advance
a1 [ 1,2,3,4,5,6] a2 [ 7,8,9,10,11]
a3 = [1,2,3,4,5,6,7,8,9,10,11]
Réponse acceptée
Plus de réponses (1)
Suryansh Shukla
le 2 Déc 2021
3 votes
As the question was already answered but if you have a column vector like a1 = [1,2,3,4,5,6]';
a2 = [7,8,9,10,11,12]';
then you can use
a3 = [a1;a2]
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!