MATLAB Functions Help Desk

textwrap

Purpose

Return wrapped string matrix for given UI control

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 multi-line text in the x and y directions.

Example

Place a textwrapped string in a Uicontrol:

See Also

uicontrol



[ Previous | Help Desk | Next ]