convert a cell array of string into a single string
조회 수: 63 (최근 30일)
이전 댓글 표시
Marc-Olivier Labrecque-Goulet
2017년 3월 8일
답변: Christine Berlingeri
2021년 9월 18일
Hi, in my program I have something like this : A = {'hello, ' 'how ' 'are ' 'you ' 'today' '?'};
And I would like to merge all those strings into one big :
B = 'hello how are you today?' B must be a string, not a cell.
Thanks you for your help
댓글 수: 0
채택된 답변
the cyclist
2017년 3월 8일
편집: the cyclist
2017년 3월 8일
strjoin(A)
will create a character array.
string(strjoin(A))
will create a string.
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Characters and Strings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!