alternative from two vectors matlab
A=[1; 0; 3; 4 ;6 ;0]; B=[5; 6; 7 ;0 ;4]; C=cat(1,A,B); C([1:2:end,2:2:end])=C
Source: www.mathworks.com
A=[1; 0; 3; 4 ;6 ;0]; B=[5; 6; 7 ;0 ;4]; C=cat(1,A,B); C([1:2:end,2:2:end])=C