2012-05-10 2 views

답변

15

당신은 전설의 내부에 텍스트를 넣어하려는 경우 당신이 할 수있는 가장 쉬운

legend('Some quick information','location','EastOutside') 

즉.

MyBox = uicontrol('style','text') 
set(MyBox,'String','Here is a lot more information') 

을하고 주위에 이동 :하지만 더 제어를 위해, 당신은 그림 창 내부 텍스트 상자를 넣을 수 있습니다 짧은 텍스트이 시도

set(MyBox,'Position',[xpos,ypos,xsize,ysize]) 
+0

MATLAB 플롯의 텍스트 포맷팅에 대한 매우 좋은 결론 : http://www.mathworks.de/de/help/matlab/creating_plots/adding-text-to-graphs.html – mojjj

+1

'uicontrol' 텍스트가 작동하지 않습니다 3D 축을 위해, 그것을 할 것인가? – embert

관련 문제