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!')
gtextuses the functions
(c) Copyright 1994 by The MathWorks, Inc.