필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to load 150mb file in matlab

조회 수: 1 (최근 30일)
Mohan Das
Mohan Das 2012년 2월 3일
마감: MATLAB Answer Bot 2021년 8월 20일
I have a matlab file of 150mb in matrix form ie.(4070x4070). I need to work on this file in matlab but i couldnt load this file. it is showing "out of memory" error.Is it possible to load the data by any means .i am working on 32bit processor, ram of 2GB. Please help me, I am exhaustd by this problem.
  댓글 수: 1
Ken Atwell
Ken Atwell 2012년 2월 5일
What form is the input file (text?). What is the MATLAB command you are using to load it?

답변 (2개)

Mark Shore
Mark Shore 2012년 2월 3일
Probably not. Assuming you are using Windows, the operating system overhead, MATLAB's overhead, and storage requirements for your dataset and working copies likely exceed your available memory.
You can try closing down all other programs and unneeded services and open up a new instance of MATLAB so that no uncleared garbage is hanging around in memory. If speed of execution is not important and you have administrator privileges, you can use hard drive space to increase the virtual RAM of your system to 4 GB.
Better to add more memory, but be aware that you will come up against a 2 GB application limit for 32-bit Windows applications. Ideally (which may not be possible for you) change to a 64-bit operating system and add more RAM.
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 2월 3일
There is also a way to increase the application limit to 3 GB on 32-bit windows.

Walter Roberson
Walter Roberson 2012년 2월 4일
Is the file currently a text file? If so, try this:
In a MATLAB session, before doing much else, load the file, and save() it to a .mat file. Then you can clear all the variables involved. At the point in the program where you need the data, load() the .mat file. This should not need much temporary storage.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by