Main Content

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 (Control System Toolbox) 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
    {'e1'}
    {'e2'}
    {'e4'}

Version History

Introduced in R2012a

See Also

| (Control System Toolbox)