Navigation

Operators and Keywords

Function List:

C++ API

: str = strjoin (cstr)
: str = strjoin (cstr, delimiter)

Join the elements of the cell string array, cstr, into a single string.

If no delimiter is specified, the elements of cstr are separated by a space.

If delimiter is specified as a string, the cell string array is joined using the string. Escape sequences are supported.

If delimiter is a cell string array whose length is one less than cstr, then the elements of cstr are joined by interleaving the cell string elements of delimiter. Escape sequences are not supported.

strjoin ({'Octave','Scilab','Lush','Yorick'}, '*')
      ⇒ 'Octave*Scilab*Lush*Yorick'

See also: strsplit.

Package: octave