Combining 2 vectors?
Show older comments
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]
Accepted Answer
More Answers (1)
Suryansh Shukla
on 2 Dec 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]
Categories
Find more on Logical in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!