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!
