필터 지우기
필터 지우기

Importing big txt files

조회 수: 4 (최근 30일)
Ashok Das
Ashok Das 2019년 3월 28일
댓글: Rik 2019년 4월 29일
I have text file (.txt) of size around 20gb. I need to import it to Matlab.
I tried using A = load('file.txt') , but it's showing error using load.
The error says:
Error using load
Requested 50000x72014 (26.8GB) array exceeds maximum array size preference. Creation of arrays greater than this limit may take a long time and cause MATLAB to become unresponsive. See array
size limit or preference panel for more information.
What to do now?
  댓글 수: 1
Rik
Rik 2019년 4월 29일
That depends on what you want to do with it. Since you probably don't have 27GB contiguous blocks of free memory, you won't be able to load the data, nor work with it all in one go. Depending on what you want to do, there might be a way to avoid loading all the data into memory.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Large Files and Big Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by