Combine cell array into a long string

2 ビュー (過去 30 日間)
Sean Lineaweaver
Sean Lineaweaver 2021 年 2 月 17 日
回答済み: Walter Roberson 2021 年 2 月 17 日
How do I reformat this cell array into one long string?
Original array:
CA = {'AAA ', 'BBB ', 'CCC '};
Desired String:
'AAA BBB CCC'

採用された回答

Walter Roberson
Walter Roberson 2021 年 2 月 17 日
CA = {'AAA ', 'BBB ', 'CCC '};
strjoin(CA, '')
ans = 'AAA BBB CCC '

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCharacters and Strings についてさらに検索

タグ

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by