This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this 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.


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 = 3x1 cell array

See Also


Introduced in R2012a

Was this topic helpful?