2013-12-18 2 views

답변

3

legend 명령이 필요합니다. 해당 문서의 예를 들어

:

figure 
x = -pi:pi/20:pi; 
plot(x,cos(x),'-ro',x,sin(x),'-.b') 
hleg1 = legend('cos_x','sin_x'); 

당신이 줄 것이다 :

enter image description here

희망이 도움이!