Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

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 =

  3×1 cell array

    'e1'
    'e2'
    'e4'

See Also

|

Introduced in R2012a

Was this topic helpful?