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