String = get(handles.popupmenu, 'String');
Index = get(handles.popupmenu, 'value');
if iscell(String)
myValue = String{Index};
else
myValue = String(Index,:);
end
OldHandle = findobj( \'Name\', \'悲伤\' ) ;if ~isempty(OldHandle),delete(OldHandle) ;end
for Time = \'现在\':\'每一天\':\'永远\',set( gco, \'心情\', \'快乐\');end % 这段代码为你天天快乐而存在