How can I make one vector out of two vectors with different lengths?
3 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Is it possible to make one vector out of two vectors with different lengths?
A = [1 1 1 1]
B = [0 0 1 0 1 0]
--> C = [0 0 1 0 1 0 1 1 1 1]
Thank for your help!
2 Commenti
Mathieu NOE
il 18 Dic 2020
sure
C = [B A]; % horizontal concatenation
C = [B(:); A(:)]; % vertical concatenation
Risposte (1)
Vedere anche
Categorie
Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!