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

24 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Characters and Strings in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by