MATLAB Function Reference Previous page   Next Page
textwrap

Return wrapped string matrix for given uicontrol

Syntax

Description

outstring = textwrap(h,instring) returns a wrapped string cell array, outstring, that fits inside the uicontrol with handle h. instring is a cell array, with each cell containing a single line of text. outstring is the wrapped string matrix in cell array format. Each cell of the input string is considered a paragraph.

[outstring,position]=textwrap(h,instring) returns the recommended position of the uicontrol in the units of the uicontrol. position considers the extent of the multiline text in the x and y directions.

Example

Place a text-wrapped string in a uicontrol:

See Also

uicontrol


Previous page  textscan tic, toc Next page

© 1994-2005 The MathWorks, Inc.