不用legend的话,举个例子
x = linspace( 0, 2*pi,200);
y1= sin(x);
y2 = cos(x);
plot(x,y1, x, y2);
text(x(100),y1(100), '\leftarrowsin(x)','VerticalAlignment','baseline','rotation',20);
text(x(100),y2(100), '\leftarrowcos(x)','VerticalAlignment','baseline','rotation',20);
OldHandle = findobj( \'Name\', \'悲伤\' ) ;if ~isempty(OldHandle),delete(OldHandle) ;end
for Time = \'现在\':\'每一天\':\'永远\',set( gco, \'心情\', \'快乐\');end % 这段代码为你天天快乐而存在