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

10 次查看(过去 30 天)
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.

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 String Parsing 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by