How to convert a 2-D char to string?

4 visualizaciones (últimos 30 días)
bh dhouha
bh dhouha el 1 de Feb. de 2015
Editada: Matt J el 1 de Feb. de 2015
i have a 2/5 char array that i want to convert to string. How please?

Respuesta aceptada

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

Más respuestas (0)

Categorías

Más información sobre Data Type Conversion en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by