cellstr
Convert a character array to a cell array of strings.
Syntax
Section titled “Syntax”c = cellstr(s)Description
Section titled “Description”Splits a character matrix into a cell array, one cell per row, with trailing whitespace stripped from each row.
Example
Section titled “Example”cellstr(['foo '; 'longer']) % {'foo'; 'longer'}