| MATLAB Function Reference | Search  Help Desk |
| cellstr | Examples See Also |
Create cell array of strings from character array
Syntax
c = cellstr(S)
Description
c = cellstr(S)
places each row of the character array S into separate cells of c. Use the string function to convert back to a string matrix.
Examples
Given the string matrixS = abc defg hiThe command
c = cellstr(S) returns the 3-by-1 cell array:
c =
'abc'
'defg'
'hi'
See Also
iscellstr, strings