MATLAB: Convert a cell array of string into a single string

cellstrings

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

Best Answer

strjoin(A)
will create a character array.
string(strjoin(A))
will create a string.