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.

text• a cell array of strings• a padded string matrix• a string vector using vertical slash characters (‘|’) as separators.Each element of the specified string array creates a different text object.When specifying the string for a single text object, cell arrays of strings andpadded string matrices result in a text object with a multiline string, whilevertical slash characters are not interpreted as separators and result in asingle line string containing vertical slashes.text is a low-level function that accepts property name/property value pairs asinput arguments, however; the convenience form,text(x,y,z,'string')is equivalent to:text('XData',x,'YData',y,'ZData',z,'String','string')You can specify other properties only as property name/property value pairs.See the text property list at the end of this page for a description of eachproperty. You can specify properties as property name/property value pairs,structure arrays, and cell arrays (see the set and get reference pages forexamples of how to specify these data types).text does not respect the setting of the figure or axes NextPlot property. Thisallows you to add text objects to an existing axes without setting hold to on.ExamplesThe statements,plot(0:pi/20:2*pi,sin(0:pi/20:2*pi))text(pi,0,' \leftarrow sin(\pi)','FontSize',18)2-504

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

Saved successfully!

Ooh no, something went wrong!