How to replace a missing value of a table with a cell?
Afficher commentaires plus anciens
Hi all, I'm using command 'readtable' to import data from excel files. All the data read in are strings and matlab uses NaN to represent missing values.
Is there a way to assign a cell to a missing value? Because I want to do a table to array conversion, and the existing of NaN keeps giving me error like "Cannot concatenate the table variables 'Var40' and 'x3_1_3', because their types are double and cell".
Thank you!
4 commentaires
Jan
le 13 Jan 2018
A short example of the inputs would be useful.
Jan
le 13 Jan 2018
It is difficult to use a screenshot by copy&paste to post some code to solve the problem. I have to spend the time to create such a table at first. It would be more convenient, if you post the code or the attach the data and the command to import it. This will increase the chance to get an answer.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Tables 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!
