MATLAB: How to display a text in a plot that can be moved

movableplottext;

Basically I need to put a text in a plot that can be clicked on and moved around (like the label of a plot). The plot is created through a users interface so that the amount of text and the position is variable, which is why I want the text to be relocated manually by clicking on it if needed.

Best Answer

plot(rand(1,10)) ;
text(rand,rand,'hello')
plottools
when figure opens..you can click on the text, you can now edit, place/ move wherever you want.