function s = shift(v,l)

% shift -- l circular left shift
%  Usage
%    s = shift(x,l)
%  Inputs
%    x   signal (can be an array)
%  Outputs
%    s   1-d signal
%        s(i) = v(i-t) for i > l
%        s(i) = v(n+i-t) otherwise
%  Description
%    s is shifted l positions to the left
%    if s has several rows, the shift is applied to every row
%  Note
%    l can be negative


l = mod(l,size(v,2));
s = [v(:,l+1:size(v,2)) v(:,1:l)];
