Borrar filtros
Borrar filtros

Combine cell array into a long string

1 visualización (últimos 30 días)
Sean Lineaweaver
Sean Lineaweaver el 17 de Feb. de 2021
Respondida: Walter Roberson el 17 de Feb. de 2021
How do I reformat this cell array into one long string?
Original array:
CA = {'AAA ', 'BBB ', 'CCC '};
Desired String:
'AAA BBB CCC'

Respuesta aceptada

Walter Roberson
Walter Roberson el 17 de Feb. de 2021
CA = {'AAA ', 'BBB ', 'CCC '};
strjoin(CA, '')
ans = 'AAA BBB CCC '

Más respuestas (0)

Categorías

Más información sobre Characters and Strings en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by