MATLAB Function Reference
  Go to function:
    Search    Help Desk 
strvcat    Examples   See Also

Vertical concatenation of strings

Syntax

Description

S = strvcat(t1,t2,t3,...) forms the character array S containing the text strings (or string matrices) t1,t2,t3,... as rows. Spaces are appended to each string as necessary to form a valid matrix. Empty arguments are ignored.

Remarks

If each text parameter, ti, is itself a character array, strvcat appends them vertically to create arbitrarily large string matrices.

Examples

The command strvcat('Hello','Yes') is the same as ['Hello';'Yes '], except that strvcat performs the padding automatically.

See Also

cat         Concatenate arrays

int2str     Integer to string conversion

mat2str     Convert a matrix into a string

num2str     Number to string conversion

string      Convert numeric values to string



[ Previous | Help Desk | Next ]