MATLAB Function Reference Previous page   Next Page
str2mat

Form blank-padded character matrix from strings

Syntax

Description

S = str2mat(T1, T2, T3, ...) forms the matrix S containing the text strings T1, T2, T3, ... as rows. The function automatically pads each string with blanks in order to form a valid matrix. Each text parameter, Ti, can itself be a string matrix. This allows the creation of arbitrarily large string matrices. Empty strings are significant.

Remarks

str2mat differs from strvcat in that empty strings produce blank rows in the output. In strvcat, empty strings are ignored.

Examples

See Also

char, strvcat


Previous page  str2func str2num Next page

© 1994-2005 The MathWorks, Inc.