Convert cell to string
古いコメントを表示
I have a cell (721*1), each cell composed by a different number of string, for example, the first cell is a (1*20) string. I want to convert this cell to string. when I use string function, it reported an error as "Conversion from cell failed. Element 1 must be convertible to a string scalar.". I have no idea why it can't convert as the string function described in Matlab.
採用された回答
その他の回答 (1 件)
madhan ravi
2018 年 11 月 1 日
編集済み: madhan ravi
2018 年 11 月 1 日
2 投票
What happens when you do?
cellstr()
5 件のコメント
Fei Li
2018 年 11 月 1 日
madhan ravi
2018 年 11 月 1 日
I think the contents in your cells are strings
Fei Li
2018 年 11 月 1 日
madhan ravi
2018 年 11 月 1 日
If they are strings why do you want to convert them?
Fei Li
2018 年 11 月 1 日
カテゴリ
ヘルプ センター および File Exchange で Cell Arrays についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
