Merge a matrix of VALUE: DOUBLE and VALUE: CELL
Afficher commentaires plus anciens
Hello all,
I have two varibles in my workspace. One is of type "Double" and contain COLUMNS of NUMERICAL DATA, and the other is of type "Cell" and contains COLUMNS of data like STRINGS and qualitative notes.
I'm trying to merge this data into a single variable, with rows containing BOTH "Double" and "Cell" type data.'
THANKS!!!
-C
Réponses (1)
Sean de Wolski
le 7 Juil 2011
Make a new cell that holds both of them:
C = {numerical_data,cell_data}
or similar
2 commentaires
Christopher
le 7 Juil 2011
Oleg Komarov
le 7 Juil 2011
You cannot have a double matrix with numbers ans strings but you can have a cell array which contians both, i.e. Sean's answer.
C = {1:10,'Numbers from 1 to 10'}
Catégories
En savoir plus sur Operators and Elementary Operations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!