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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

textPurpose2textCreate text object in current axesSyntaxDescriptiontext(x,y,'string')text(x,y,z,'string')text(...'PropertyName',PropertyValue...)h = text(...)text is the low-level function for creating text graphics objects. Use text toplace character strings at specified locations.text(x,y,'string') adds the string in quotes to the location specified by thepoint (x,y).text(x,y,z,'string') adds the string in 3-D coordinates.text(x,y,z,'string','PropertyName',PropertyValue....) adds the stringin quotes to location defined by the coordinates and uses the values for thespecified text properties. See the text property list section at the end of thispage for a list of text properties.text('PropertyName',PropertyValue....) omits the coordinates entirelyand specifies all properties using property name/property value pairs.h = text(..) returns a column vector of handles to text objects, one handleper object. All forms of the text function optionally return this outputargument.See the String property for a list of symbols, including Greek letters.RemarksSpecify the text location coordinates (the x, y, and z arguments) in the dataunits of the current axes (see “Examples”). The Extent, VerticalAlignment,and HorizontalAlignment properties control the positioning of the characterstring with regard to the text location point.If the coordinates are vectors, text writes the string at all locations defined bythe list of points. If the character string is an array the same length as x, y, andz, text writes the corresponding row of the string array at each point specified.When specifying strings for multiple text objects, the string can be2-503

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

Saved successfully!

Ooh no, something went wrong!