Concatenating string in a unique string

2 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Characters and Strings in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by