transform the cell 'string' containing strings into a single string
显示 更早的评论
Hi! I need to transform the cell 'string' containing strings into a single string, like this:
string_new = "54 55 56 57 59 60 61 62 63 69 ";
采纳的回答
更多回答(1 个)
load string.mat
who
string
string_new = join(horzcat(string{:}))
Probably not a good idea to have a variable named string, which is conflicting with string
类别
在 帮助中心 和 File Exchange 中查找有关 Characters and Strings 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!