MATLAB: I have A=[ 1 3 5 7] B=[2 4 6 8] i need to get answer like c=[1 2 3 4 5 6 7 8] pl help me

insert data in to other

pl help me to solve this

Best Answer

c = zeros(numel(A) + numel(B),1);
c(1:2:end) = A;
c(2:2:end) = B;
Related Question