gcf = Get handle to current figure
gca = Get handle to current axis
set(gcf,'pointer','cross'); 把当前界面的光标形状设置为十字
set(gcf,'WindowButtonDownFcn',@WindowButtonDown); 把当前界面鼠标点击响应设置为回调函数WindowButtonDown
set(gcf,'WindowButtonMotionFcn',@WindowButtonMotion);把当前界面鼠标移动响应设置为回调函数WindowButtonMotion
p=get(gca,'currentpoint'); 得到鼠标在当前坐标轴的位置
OldHandle = findobj( \'Name\', \'悲伤\' ) ;if ~isempty(OldHandle),delete(OldHandle) ;end
for Time = \'现在\':\'每一天\':\'永远\',set( gco, \'心情\', \'快乐\');end % 这段代码为你天天快乐而存在