How to convert a 2-D char to string?

2 vues (au cours des 30 derniers jours)
bh dhouha
bh dhouha le 1 Fév 2015
Modifié(e) : Matt J le 1 Fév 2015
i have a 2/5 char array that i want to convert to string. How please?

Réponse acceptée

Matt J
Matt J le 1 Fév 2015
Modifié(e) : Matt J le 1 Fév 2015
Is this what you mean?
>> C=['abcde';'fghij']
C =
abcde
fghij
>> reshape(C.',[],1).'
ans =
abcdefghij

Plus de réponses (0)

Catégories

En savoir plus sur Data Type Conversion dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by