fh = figure('name','菜单实例','menubar','none','numbertitle','off') ;
u = uimenu(fh, 'label','菜单');
uimenu(u,'label','退出','cal','close(gcf)');
uicontrol('sty','edit','cal','set(gcf, ''name'', get(gco,''string''))');
OldHandle = findobj( \'Name\', \'悲伤\' ) ;if ~isempty(OldHandle),delete(OldHandle) ;end
for Time = \'现在\':\'每一天\':\'永远\',set( gco, \'心情\', \'快乐\');end % 这段代码为你天天快乐而存在