MATLAB: Text to annotate figure

figuretext;

Is it possible to annotate a plot with text without having to specify the x and y coordinates. I know you can use commands like
'VerticalAlignment','top',...
'HorizontalAlignment','right');
after defining the x and y location but I'm producing many figures in a loop so the x and y values are always going to change so I would like something that would allow the text to always be displayed in the top right hand corner of the figure window. Is this possible?

Best Answer

Sounds like you might want to use legend.
Related Question