I have the vector y=[-2 -4 -6 ... -1000], and I want to insert a 0 before every element to change the vector into: y=[0 -2 0 -4 0 -6 ... 0 -1000].
How do I do this? Should I try to directly insert elements into vector y or create a separate vector z with just 0's and try to merge the 2?
Also, is there a way to do this without using loops or index vectors?