How to convert a 2-D char to string?

7 views (last 30 days)
bh dhouha
bh dhouha on 1 Feb 2015
Edited: Matt J on 1 Feb 2015
i have a 2/5 char array that i want to convert to string. How please?

Accepted Answer

Matt J
Matt J on 1 Feb 2015
Edited: Matt J on 1 Feb 2015
Is this what you mean?
>> C=['abcde';'fghij']
C =
abcde
fghij
>> reshape(C.',[],1).'
ans =
abcdefghij

More Answers (0)

Categories

Find more on Characters and Strings in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!