Skip to content

textjoin

Concatenate text values with a delimiter.

v = textjoin(delimiter, ignore_empty, text1, text2, ...)

Returns the concatenation of arguments separated by delimiter. With ignore_empty = true, empty strings are skipped (no double-delimiter). Useful for building CSV-like strings.

textjoin(', ', true, 'a', '', 'b', 'c') % 'a, b, c'
textjoin('-', false, '2026', '04', '28') % '2026-04-28'
  • concat — Concatenate text values.
  • join — Join an array of strings into a single string.