Error using cell2mat (line 52) CELL2MAT does not support cell arrays containing cell arrays or objects.
Mostra commenti meno recenti
HI I have a cell array {4000x1 cell, 5000x1 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
2 Commenti
Guillaume
il 21 Mar 2018
strings or char array?
Your notation would imply that you have 1x2 cell array, where each cell is itself a cell array (of size 4000x1 and 5000x1 respectively). Presumably each cell of these subcells are strings or char arrays?
Should each of the main two cell result in one char array (i.e one char array is the concatenation of the 4000 char array, and the other is the concatenation of 5000 char array), or should everything be concatenated together?
cgenes
il 21 Mar 2018
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Data Type Conversion in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!