convert a cell array of string into a single string
显示 更早的评论
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
采纳的回答
更多回答(1 个)
Christine Berlingeri
2021-9-18
0 个投票
A = [1, 2, 3, 4, 4]
B = string(strjoin(A))
类别
在 帮助中心 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!