Merging (possibly concatenating) two vectors

Hi Everyone,

I need to combine the vectors A = [1 5 9] and B = [3 2 8 12] into a vector C such that C = [1 3 5 2 8 12].

I need the elements of the combined vectors A and B to alternate sequentially in the new vector C, with any extra elements that cause A and B to differ in dimension arranged neatly at the end. If someone could help me out that would be great. I know the answer is a simple one that happens to elude a noob such as myself.


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!