Undefined function 'cell2str' for input arguments of type 'cell'.
조회 수: 21(최근 30일)
표시 이전 댓글
str = {'this' 'is' 'a' 'test' 'of' 'cell' '2' 'str'};
str=cell2str(str)
Undefined function 'cell2str' for input arguments of type 'cell'
%I got this error.
%How can I transform any character of cell to strings?
댓글 수: 0
채택된 답변
추가 답변(2개)
Pascal Boulos
2018년 10월 19일
>> join(str)
ans =
string
"this is a test of cell 2 str"
>> strjoin(str)
ans =
'this is a test of cell 2 str'
댓글 수: 1
참고 항목
범주
Find more on Cell Arrays in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!