How to convert a 2-D char to string?

7 visualizzazioni (ultimi 30 giorni)
bh dhouha
bh dhouha il 1 Feb 2015
Modificato: Matt J il 1 Feb 2015
i have a 2/5 char array that i want to convert to string. How please?

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Characters and Strings in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by