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!
