Combine cell array into a long string

23 Ansichten (letzte 30 Tage)
Sean Lineaweaver
Sean Lineaweaver am 17 Feb. 2021
Beantwortet: Walter Roberson am 17 Feb. 2021
How do I reformat this cell array into one long string?
Original array:
CA = {'AAA ', 'BBB ', 'CCC '};
Desired String:
'AAA BBB CCC'

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Language Fundamentals finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by