Convert cell to string
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (1)
madhan ravi
el 1 de Nov. de 2018
Editada: madhan ravi
el 1 de Nov. de 2018
2 votos
What happens when you do?
cellstr()
5 comentarios
Fei Li
el 1 de Nov. de 2018
madhan ravi
el 1 de Nov. de 2018
I think the contents in your cells are strings
Fei Li
el 1 de Nov. de 2018
madhan ravi
el 1 de Nov. de 2018
If they are strings why do you want to convert them?
Fei Li
el 1 de Nov. de 2018
Categorías
Más información sobre Cell Arrays en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
