12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

gtextPurpose2gtextMouse placement of text in two-dimensional viewSyntaxDescriptiongtext('string')h = gtext('string')gtext displays a text string in the current figure window after you select alocation with the mouse.gtext('string') waits for you to press a mouse button or keyboard key whilethe pointer is within a figure window. Pressing a mouse button or any keyplaces 'string' on the plot at the selected location.h = gtext('string') returns the handle to a text graphics object after youplace 'string' on the plot at the selected location.RemarksExamplesAs you move the pointer into a figure window, the pointer becomes a crosshairto indicate that gtext is waiting for you to select a location. gtext uses thefunctions ginput and text.Place a label on the current plot:gtext('Note this divergence!')See Alsoginput, text2-218

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!