convert a cell array of string into a single string
61 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Marc-Olivier Labrecque-Goulet
am 8 Mär. 2017
Beantwortet: Christine Berlingeri
am 18 Sep. 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 Kommentare
Akzeptierte Antwort
the cyclist
am 8 Mär. 2017
Bearbeitet: the cyclist
am 8 Mär. 2017
strjoin(A)
will create a character array.
string(strjoin(A))
will create a string.
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!