Combine cell array into a long string

1 vue (au cours des 30 derniers jours)
Sean Lineaweaver
Sean Lineaweaver le 17 Fév 2021
How do I reformat this cell array into one long string?
Original array:
CA = {'AAA ', 'BBB ', 'CCC '};
Desired String:
'AAA BBB CCC'

Réponse acceptée

Walter Roberson
Walter Roberson le 17 Fév 2021
CA = {'AAA ', 'BBB ', 'CCC '};
strjoin(CA, '')
ans = 'AAA BBB CCC '

Plus de réponses (0)

Catégories

En savoir plus sur Characters and Strings dans Help Center et File Exchange

Tags

Produits


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by