How to convert a 2-D char to string?

i have a 2/5 char array that i want to convert to string. How please?

 採用された回答

Matt J
Matt J 2015 年 2 月 1 日
編集済み: Matt J 2015 年 2 月 1 日

1 投票

Is this what you mean?
>> C=['abcde';'fghij']
C =
abcde
fghij
>> reshape(C.',[],1).'
ans =
abcdefghij

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCharacters and Strings についてさらに検索

タグ

質問済み:

2015 年 2 月 1 日

編集済み:

2015 年 2 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by