function res = liu_NPrevSamples(s,n),

res = im2col(s(1:(end-1)),[1 n],'sliding');
res = flipud(reshape(res,n,length(res)));

return
