strseq

Create sequence of indexed character vectors

Syntax

txtarray = strseq(TXT,INDICES)

Description

txtarray = strseq(TXT,INDICES) creates a sequence of indexed character vectors in the cell array txtarray by appending the integer values INDICES to the character vector TXT.

Note

You can use strvec to aid in system interconnection. For an example, see the sumblk reference page.

Examples

collapse all

Index the text 'e' with the numbers 1, 2, and 4.

txtarray = strseq('e',[1 2 4])
txtarray = 3x1 cell array
    {'e1'}
    {'e2'}
    {'e4'}

See Also

|

Introduced in R2008b