| MATLAB Function Reference | ![]() |
Syntax
c = cellstr(S)
Description
c = cellstr(S)
將字元陣列 S 中的每一列各別放入 c 中的每一格。使用 char 函式可以回復成字串矩陣。
Examples
S=['abc ';'defg';'hi ']
S =
abc
defg
hi
whos S
Name Size Bytes Class
S 3x4 24 char array
c = cellstr(S)
c =
'abc'
'defg'
'hi'
whos c
Name Size Bytes Class
c 3x1 294 cell array
See Also
| cellplot | cgs | ![]() |