For the professionals among us, I cannot figure this out for the life of me and I know it is simple....
I want to combine two vectors a=[1 3 5 7 9 11] and b=[20 40 60] into one vector c, so that c=[1 20 3 40 5 60 7 9 11]. If you cannot tell it alternates vectors until one runs out then it just finishes the with the rest of the other vectors values.
I know if I do c=[a,b] it does the [ 1 3 5 7 9 11 20 40 60] but I cannot get it to do the above.
I am pretty sure the length command is involved somehow.
Any help would be aprreciated! I am a very frustrated, but I know it is extremely easy (major brain fart!)
I want to combine two vectors a=[1 3 5 7 9 11] and b=[20 40 60] into one vector c, so that c=[1 20 3 40 5 60 7 9 11]. If you cannot tell it alternates vectors until one runs out then it just finishes the with the rest of the other vectors values.
I know if I do c=[a,b] it does the [ 1 3 5 7 9 11 20 40 60] but I cannot get it to do the above.
I am pretty sure the length command is involved somehow.
Any help would be aprreciated! I am a very frustrated, but I know it is extremely easy (major brain fart!)