How to convert a 2-D char to string?

4 ビュー (過去 30 日間)
bh dhouha
bh dhouha 2015 年 2 月 1 日
編集済み: Matt J 2015 年 2 月 1 日
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 日
Is this what you mean?
>> C=['abcde';'fghij']
C =
abcde
fghij
>> reshape(C.',[],1).'
ans =
abcdefghij

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Type Conversion についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by