Concatenating string in a unique string

1 view (last 30 days)
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?

Accepted Answer

Walter Roberson
Walter Roberson on 19 Mar 2019
horzcat(A{:})
or
strjoin(A, '')

More Answers (0)

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!