Does not properly read csv file
22 ビュー (過去 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 件のコメント
採用された回答
Walter Roberson
2021 年 4 月 14 日
readcell() instead of readtable(). Your file mixes data types.
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!