Concatenating string in a unique string

2 次查看(过去 30 天)
Hi everyone.
A={'AAA','BBB','CCC','DDD'};
Given that cell array of string I want to obtain an unique string namely I want, call it D to be
D='AAABBBCCCDDD';
How can I do?

采纳的回答

Walter Roberson
Walter Roberson 2019-3-19
horzcat(A{:})
or
strjoin(A, '')

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Characters and Strings 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by