How to have all strings in a cell array combine to one string
24 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Konstantinos Tsitsilonis
el 5 de Oct. de 2018
Comentada: Konstantinos Tsitsilonis
el 5 de Oct. de 2018
Hi all,
I have a 9x1 cell array with strings in each cell, and I would like to combine all the strings in the cell array on 1 cell such that I have one continuous string.
I know I can use something like {:}, however this only displays each cell separately rather than combine them in one answer.
Thanks for your help,
KMT.
0 comentarios
Respuesta aceptada
KSSV
el 5 de Oct. de 2018
str{1} = 'I' ;
str{2} = 'LIKE';
str{3} = 'MaT' ;
str{4} = 'LAB' ;
iwant = [str{:}]
Más respuestas (0)
Ver también
Categorías
Más información sobre Characters and Strings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!