Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Merging (possibly concatenating) two vectors
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.
0 · ·