MATLAB: Combining 2 vectors

matrixvectors

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]

Best Answer

You created a1 as
a1 = [1,2,3,4,5,6];
and a2 as
a2 = [7,8,9,10,11];
So why would you not be able to create a3 as
a3 = [a1,a2];
TRY IT!