Issue when importing large csv file

조회 수: 4 (최근 30일)
Matt Lester
Matt Lester 2023년 8월 25일
댓글: Walter Roberson 2023년 8월 25일
I am attempting to import a large csv file (~3 million rows) using the function readtable. The data set is two columns, first is datetime in UTC, and the second is values from an accelerometer. However, when it imports into Matlab it gets sorted into 3 columns, partial date, hour, and rest of time with the accelerometer value paired with a comma. Why is Matlab expanding my dataset to 3 columns? I've opened the file in Excel and Notepad ++ and it is two columns. Thank you in advance!
  댓글 수: 4
Dyuman Joshi
Dyuman Joshi 2023년 8월 25일
The above comment by Yousef feels like a chatbot response.
Walter Roberson
Walter Roberson 2023년 8월 25일
readtable() does not have an option named 'header' . It also does not have any options for which 'none' is a special value (for example if you use 'Sheet', 'none' then that would look for a sheet literally named "none" -- so 'none' is valid for some options but does not mean anything special to those options.)

댓글을 달려면 로그인하십시오.

채택된 답변

Matt Lester
Matt Lester 2023년 8월 25일
I was able to get my data to import properly using the arguments "Delimiter" and "comma" in my readtable function. Thanks to all who answered!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Type Conversion에 대해 자세히 알아보기

태그

제품


릴리스

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by