function progress(i)
%PROGRESS  displays a very fancy work-in-progress indicator
%
%    Just pass on you current step index i of some eternal
%       for loop and you'll get displayed a cute little
%       rotating line ...
%
%  Last change:  10/2/2005 - Florian Knorn

s = mod(i,4);

if s==0
	fprintf('\b|');
elseif s==1
	fprintf('\b/');
elseif s==2
	fprintf('\b-');
else
	fprintf('\b\\');
end