convert a cell array of string into a single string
Show older comments
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
Accepted Answer
More Answers (1)
Christine Berlingeri
on 18 Sep 2021
0 votes
A = [1, 2, 3, 4, 4]
B = string(strjoin(A))
Categories
Find more on Characters and Strings 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!