Combine cell array into a long string

How do I reformat this cell array into one long string?
Original array:
CA = {'AAA ', 'BBB ', 'CCC '};
Desired String:
'AAA BBB CCC'

 Respuesta aceptada

CA = {'AAA ', 'BBB ', 'CCC '};
strjoin(CA, '')
ans = 'AAA BBB CCC '

Más respuestas (0)

Categorías

Más información sobre Language Fundamentals en Centro de ayuda y File Exchange.

Productos

Versión

R2020b

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by