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

23 vues (au cours des 30 derniers jours)
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.

Réponse acceptée

KSSV
KSSV le 5 Oct 2018
str{1} = 'I' ;
str{2} = 'LIKE';
str{3} = 'MaT' ;
str{4} = 'LAB' ;
iwant = [str{:}]

Plus de réponses (0)

Catégories

En savoir plus sur Characters and Strings 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