MATLAB: Fill a vector with two vectors

arraysMATLABmatricesvectors

Hello, I have two vectors, Ex: V1 = [3 8 6 7 ] and V2= [1 5 9 4 ]. With V1 and V2, I would like to create the following vector: Result = [ 8 5 6 9 7 4]. How can I do this?
Thanks in advance,
Eva

Best Answer

V1 = [3 8 6 7]
V2 = [1 5 9 4]
V = reshape([V1;V2],1,[])
V = V(3:end)
results in:
V1 =
3 8 6 7
V2 =
1 5 9 4
V =
3 1 8 5 6 9 7 4
V =
8 5 6 9 7 4