function alarmClock(h,m)
% Wake me up at h:m.  Based on 24-hr clock.

v= clock;
  % [year month day hour minute seconds]
  % 24-hr clock; all are ints except seconds
while (v(4)~=h || v(5)~=m)
    pause(20);
    v= clock;
end

% "Scotty, beam me up"
[s1, fs]= wavread('sp_beam.wav');
pauseLength= 60;
for k= 1:5
   sound(s1, fs)
   pause(pauseLength)
end