pb_pause.m 637 Bytes
Newer Older
1
2
function pb_pause(msg)
% PB_PAUSE(msg)
Jesse Heckman's avatar
Jesse Heckman committed
3
%
4
% PB_PAUSE() allows you to pause with display msg until any key is pressed.
Jesse Heckman's avatar
Jesse Heckman committed
5
%
6
% See also PAUSE, INPUT
Jesse Heckman's avatar
Jesse Heckman committed
7
8
9

% PBToolbox (2018): JJH: j.heckman@donders.ru.nl

10
11
12
   if nargin == 0; pause; return; end
   disp(msg);
   pause;
Jesse Heckman's avatar
Jesse Heckman committed
13
14
15
16
17
18
19
20
21
end
 
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % 
%                                                           %
%       Part of Programmeer Beer Toolbox (PBToolbox)        %
%       Written by: Jesse J. Heckman (2018)                 %
%                                                           %
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %