Say I have a column vector x=[a;b;c]. I want to repeat each element n times to make a long length(x)*n vector. For example, for n=3, the answer would be:
ans=aaabbbccc
Can anyone think of an elegant way to do this without looping?
Thanks,
Justin
Best Answer