Does not properly read csv file
22 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
alpedhuez
il 14 Apr 2021
Risposto: Walter Roberson
il 14 Apr 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 Commenti
Risposta accettata
Walter Roberson
il 14 Apr 2021
readcell() instead of readtable(). Your file mixes data types.
0 Commenti
Più risposte (1)
Thomas Jensen
il 14 Apr 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.
Vedere anche
Categorie
Scopri di più su Data Import and Analysis in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!