function fig=showmenubotton %SHOWMENUBUTTON Show a button to reactivate the menubar % % Copyright (c) 1995 by Claudio Rivetti and Mark Young % claudio@alice.uoregon.edu, mark@alice.uoregon.edu % global alertfig if isempty(findobj('name', 'Button')) alertfig=figure('position', [1113 886 120 50],'Interruptible','yes', 'Numbertitle', 'off', 'resize', 'off', 'name', 'Button'); b=uicontrol('style', 'push',... 'string', 'Show Menubar',... 'BackgroundColor', 'yellow',... 'position', [0 0 120 50],... 'callback', 'global alertfig;amenu;close(alertfig);'); end if nargout ~= 0 fig=alertfig; end return