Solved
How do I repeat elements of a vector to create another larger vector?
If I have a vector V, how do I repeat values/elements into another vector to create a vector with more elements? For example; I have a vector V=[0,5,3,...n] and I want to repeat each element of this vector twice (k=2) to create a vector Z=[0,0,5,5,3,3,...n,n].

