function y = padshift(x,s)
%PADSHIFT Summary of this function goes here
%   Detailed explanation goes here
    
    y = zeros(length(x),length(s));

    for ii = 1:length(s)
        y(:,ii) = circshift(x,s(ii));
        if s(ii) > 0
            y(1:abs(s(ii)),ii) = 0;
        elseif s(ii) < 0
            y((length(x)-abs(s(ii))+1):length(x),ii) = 0;
        end
    end

end

