필터 지우기
필터 지우기

read from CSV file-complex

조회 수: 2 (최근 30일)
ron
ron 2013년 1월 16일
hi, i have aCSV file looks like this:
2012-02-09 00:00:36,11002,86,1,0,376,0,0,0,0,0
2012-02-09 00:00:39,11002,86,1,0,622,0,0,0,0,3
the fields are: datetime|int|int|int|int|int|int|int|int|int|int|
i want to read it into a matrix that will look like this:
year|month|day|hour|all other numeric columns. any suggestions?
P.S the data amount in large, about 3 millon rows...

답변 (1개)

Ilham Hardy
Ilham Hardy 2013년 1월 16일
Download this function from File Exchange:
And look in the comment, specifically for example no.4 in the m-file.
HTH,
Ilham

카테고리

Help CenterFile Exchange에서 String Parsing에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by