2012-05-10 7 views

Antwort

15

Wenn Sie diesen Text in einer Legende setzen möchten, können Sie tun:

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

Das einfachste ist. obwohl für mehr Kontrolle, können Sie ein Textfeld in der Abbildung Fenster setzen:

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

und bewegen Sie ihn herum mit:

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

sehr schöne Schlussfolgerung zur Textformatierung für MATLAB-Plots: http://www.mathworks.de/de/help/matlab/creating_plots/adding-text-to-graphs.html – mojjj

+1

Der 'uicontrol'-Text funktioniert nicht für 3D-Achsen, oder? – embert