Question : alternative from two vectors matlab
Answered by : excited-echidna-5uwyez8fui2n
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 : https://www.mathworks.com/matlabcentral/answers/464462-merging-vectors-together-with-alternating-values | Last Update : Sat, 15 Jan 22