FUNCTION REFERENCE

strjoin

Join the text pieces of a cell array.

Join the text pieces of a cell array.

Syntax

s = strjoin(c)

Syntax

s = strjoin(c, delimiter)

Puts delimiter between the pieces. The default delimiter is one space. Escapes such as \n in the delimiter are converted.

Example

strjoin({'a','b','c'}, '-')   % 'a-b-c'

Differences from MATLAB: A cell array of delimiters is not supported yet.

String inputs are supported with bounded two-dimensional storage.

Example

strjoin(["a" "b"],",")

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.