convert a cell array of string into a single string
67 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Marc-Olivier Labrecque-Goulet
il 8 Mar 2017
Risposto: Christine Berlingeri
il 18 Set 2021
Hi, in my program I have something like this : A = {'hello, ' 'how ' 'are ' 'you ' 'today' '?'};
And I would like to merge all those strings into one big :
B = 'hello how are you today?' B must be a string, not a cell.
Thanks you for your help
0 Commenti
Risposta accettata
the cyclist
il 8 Mar 2017
Modificato: the cyclist
il 8 Mar 2017
strjoin(A)
will create a character array.
string(strjoin(A))
will create a string.
Più risposte (1)
Vedere anche
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!