MATLAB: Error using cell2mat (line 52) CELL2MAT does not support cell arrays containing cell arrays or objects.

cell2matchar

HI I have a cell array {4000×1 cell, 5000×1 cell} containing strings 'nameA', 'nameB' – I want to concatenate them into 1 long character array – cell2mat does the trick if the cells are numbers – but what do you use if you have strings as in my case? thanks

Best Answer

vertcat(A{:})