MATLAB: How to add a textbox next to a plot

plotplottingsubplottextbox;

I am trying to add a textbox outside the axes and the plot and next to it indicating some data in the graph. The annotation command requires me to set the location but I am unable to set the location outside the axes.

Best Answer

According to the documentation annotation objects apparently must be within the current figure. However text objects do not (although you place them with respect to the figure coordinates).