function [g] = shift(d,y) %SHIFT Circular shifts left a 1-D vector % X = SHIFT(A, N) will shift the vector A to the left by N number of elements. % The shifted elements are wrapped back around to the end of the vector. %Shane Crockett - 11JUN98 %Developed for use in "straightening out" hyberbolic chirp temp = d(1:y); g = [d((y+1):length(d)) temp]; %x = length(d) - 1; %for c = y:x; % g(1,c - (y-1)) = d(1,1+c); %end %g = [g d(1:y)];