Documentation Center

  • 評価版
  • 製品アップデート

strseq

Create sequence of indexed strings

Syntax

strvec = strseq(STR,INDICES)

Description

strvec = strseq(STR,INDICES) creates a sequence of indexed strings in the string vector strvec by appending the integer values INDICES to the string STR.

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

Examples

Create a string vector by indexing the string 'e' at 1, 2, and 4.

strseq('e',[1 2 4])

This command returns the following result:

ans = 

    'e1'
    'e2'
    'e4'

See Also

|

Was this topic helpful?