The user can select points on a plot with the ginput
function or
selection the position at which to place text on the plot with the
gtext
function using the mouse.
Return which mouse buttons were pressed and keys were hit on the current figure. If n is defined, then wait for n mouse clicks before returning. If n is not defined, then
ginput
will loop until the return key is pressed.
Wait for button or mouse press.over a figure window. The value of b returns 0 if a mouse button was pressed or 1 is a key was pressed.
See also: ginput.
Place text on the current figure using the mouse. The text is defined by the string s. If s is a cell array, each element of the cell array is written to a separate line. Additional arguments are passed to the underlying text object as properties.