Skip to content

cellstr

builtin · libnexusinterp/nexus-value/ov-cell-proprietary.cc

: cstr = cellstr (strmat)

Convert the rows of a character array into a cell array of strings.

Trailing blanks of every row are removed. A cell array of character vectors is returned unchanged. Applied to an empty character array the result is a cell array holding one empty string.

cellstr (["ab  "; "cde "])
  ⇒ { "ab"; "cde" }