How about:
C = B + [A zeros(1,length(B)-length(A))]
assuming that by merge you mean add-merge. If it's just about adjusting the size of the vector, then use
C = [A zeros(1,length(B)-length(A))]
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!