Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

how to load 150mb file in matlab

1 visualización (últimos 30 días)
Mohan Das
Mohan Das el 3 de Feb. de 2012
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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 comentario
Ken Atwell
Ken Atwell el 5 de Feb. de 2012
What form is the input file (text?). What is the MATLAB command you are using to load it?

Respuestas (2)

Mark Shore
Mark Shore el 3 de Feb. de 2012
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 comentario
Walter Roberson
Walter Roberson el 3 de Feb. de 2012
There is also a way to increase the application limit to 3 GB on 32-bit windows.

Walter Roberson
Walter Roberson el 4 de Feb. de 2012
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.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by