wolffd@0: function pb = mirwaitbar(s) wolffd@0: % mirwaitbar(0) toggles off the display by MIRtoolbox of waitbar windows. wolffd@0: % mirverbose(1) toggles back on the display of these waitbar windows. wolffd@0: wolffd@0: persistent mir_wait_bar wolffd@0: wolffd@0: if nargin wolffd@0: mir_wait_bar = s; wolffd@0: else wolffd@0: if isempty(mir_wait_bar) wolffd@0: mir_wait_bar = 1; wolffd@0: end wolffd@0: end wolffd@0: wolffd@0: pb = mir_wait_bar;