edit large CSV file before reading it to a table
조회 수: 4 (최근 30일)
이전 댓글 표시
hi,
I have a very large (16Gb) CSV file that contains one column with data separated by semicolumn.
I only need 2 columns from this data, but I cannot read it first since the memory is running out (I have 16Gb ram).
Is it possible to somehow separate the semicolumn to a column and read only the data I need (which is 2/6 columns)?
댓글 수: 2
채택된 답변
Walter Roberson
2021년 5월 6일
Use 'delimiter', ';', and 'SelectedVariableNames' with a vector that is the two column numbers.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Workspace Variables and MAT-Files에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!