How to convert a 2-D char to string?

2 Ansichten (letzte 30 Tage)
bh dhouha
bh dhouha am 1 Feb. 2015
Bearbeitet: Matt J am 1 Feb. 2015
i have a 2/5 char array that i want to convert to string. How please?

Akzeptierte Antwort

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

Weitere Antworten (0)

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by