Does not properly read csv file
20 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
alpedhuez
le 14 Avr 2021
Réponse apportée : Walter Roberson
le 14 Avr 2021
I try to read the attached csv file using readtable. But the data does not seem to be read. What can be done?
0 commentaires
Réponse acceptée
Walter Roberson
le 14 Avr 2021
readcell() instead of readtable(). Your file mixes data types.
0 commentaires
Plus de réponses (1)
Thomas Jensen
le 14 Avr 2021
Hi,
Try to use readtable('test.csv','Format','%s,%s'). It will force the data to be treated as text.
Since you columns are mixing number and date values, it is better to keep it as char and post-process it later.
Voir également
Catégories
En savoir plus sur Data Import and Analysis dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!