string.cell
string: c_arr = cell (str)
Convert string array to a cell array.
c_arr = cell (str) returns a cell array, c_arr,
which has the same size as the input string str. All elements in
str that represent real or complex numbers are converted to
equivalent double values, whereas all other non-missing elements are
converted to character vectors. Zero-length strings are converted to
'' empty character vectors, while missing values are returned as
[] empty numeric vectors.
Source Code: string
cell also returns a cell array of character vectors (like cellstr).
s = string ({'a'; 'b'; 'c'})
s =
3x1 string array
"a"
"b"
"c"
cell (s)
ans =
3x1 cell array
{'a'}
{'b'}
{'c'}