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.


Create sequence of indexed character vectors


txtarray = strseq(TXT,INDICES)


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.


collapse all

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

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

  3×1 cell array


See Also


Introduced in R2012a

Was this topic helpful?