| MATLAB Functions | Help Desk |
cellstr
Create cell array of strings from character array
c = cellstr(S)
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.
Given the string matrix
S = abc defg hiThe command
c = cellstr(S) returns the 3-by-1 cell array:
c =
'abc'
'defg'
'hi'
iscellstr True for cell array of strings
string Convert numeric values to string