필터 지우기
필터 지우기

Read specific columns from a large csv file

조회 수: 2 (최근 30일)
Nikita Agrawal
Nikita Agrawal 2018년 7월 11일
편집: Jan 2018년 7월 11일
I have a csv file of 6000 columns need to use only 3000 for my analysis. These columns are not really a range of consecutive numbers. Is there a way I can do it to save computation of reading extra data when I need only half of it?

채택된 답변

Jan
Jan 2018년 7월 11일
편집: Jan 2018년 7월 11일
No. A CSV file is a text file. Matlab has to read each value to find the next one. There is no magic trick to reduce the work.
Huge text files are a bad design. Text files are useful, if they are read or modified by human. In all other cases binary files are much better, most of all faster to read, especially if you need some parts only.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import and Export에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by