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
채택된 답변
추가 답변 (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!