Skip to Main Content Skip to Search
Product Documentation

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.

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

connect | strcat

  


Free Control Systems Interactive Kit

Learn more about resources for designing, testing, and implementing control systems.

Get free kit

Trials Available

Try the latest control systems products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS