function vector = upsample(v) N=size(v,1); vector(1:N*2) = 0; for i=0: 2: N*2-1 vector(i+1) = v(i/2+1); end vector= vector';