gtext('string')
gtext('string') waits for a mouse button or keyboard key to be pressed while the mouse pointer is within the graph window. Pressing a mouse button or any key writes the text string onto the graph at the selected location.
gtext('Note this peak!')
gtext uses the functions ginput and text.
ginput,text
(c) Copyright 1994 by The MathWorks, Inc.