Does not properly read csv file
20 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
alpedhuez
am 14 Apr. 2021
Beantwortet: Walter Roberson
am 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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 14 Apr. 2021
readcell() instead of readtable(). Your file mixes data types.
0 Kommentare
Weitere Antworten (1)
Thomas Jensen
am 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.
Siehe auch
Kategorien
Mehr zu Data Import and Analysis finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!