function clearstatusbar(mode) %CLEARSTATUSBAR Clear the message in the statusbar. % % CLEARSTATUSBAR(MODE) % % MODE = NOW Clear the statusbar immediately. % MODE = WAIT Clear the statusbar after a mouse click. % % See also STATUSBAR % % % Copyright (c) 1995 by Claudio Rivetti and Mark Young % claudio@alice.uoregon.edu, mark@alice.uoregon.edu % if nargin > 1 error('Too many input arguments'); end if nargin < 1 mode='NOW'; end if strcmp(upper(mode), 'NOW') statusbar(' '); end if strcmp(upper(mode), 'WAIT') waitforbuttonpress; statusbar(' '); end return;