How to have all strings in a cell array combine to one string

24 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

KSSV
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)

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!

Translated by