function bell(num_beeps, time_interval)
% BELL       Makes a bell noise and no carriage return.
%   bell makes a single beep
%   bell(n) makes n beeps 0.5 secs apart
%   bell(n, dt) makes n beeps dt secs apart 

% $Id: bell.m,v 1.2 2000/03/14 05:35:31 mansbrid Exp $
% Copyright J. V. Mansbridge, CSIRO, Tue Mar 14 16:24:06 EST 2000
  
if nargin == 0
  num_beeps = 1;
  time_interval = 0.5;
elseif nargin == 1
  num_beeps = round(num_beeps);
  time_interval = 0.5;
elseif nargin == 2
  num_beeps = round(num_beeps);
else
  error('Can be only 2 input arguments')
end

fprintf('');
for ii = 2:num_beeps
  pause(time_interval)
  fprintf('');
end
