function y = upshift(x,nup)

% circular up shift of 1-d vector x by nup places
% input:
%	x  	vector
%	nup	# of places to shift up
% output:
%	y 	shifted vector


y = [ x(nup+1:length(x));  x(1:nup) ];

