Does not properly read csv file
20 次查看(过去 30 天)
显示 更早的评论
I try to read the attached csv file using readtable. But the data does not seem to be read. What can be done?
0 个评论
采纳的回答
更多回答(1 个)
Thomas Jensen
2021-4-14
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Analysis 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!