'Out of memory problems'

1 visualización (últimos 30 días)
pamela sulis
pamela sulis el 30 de Oct. de 2015
Editada: Adam el 30 de Oct. de 2015
Hi! Matlab give me problem 'Out of memory'; I try different solutions:
- Give higher priority to Matlab.exe task
- Increase the page file size of your applications in general
- increase the Java heap size to its maximum possible value
but i continue to have problems. Can you give me any suggests? Thanks
  4 comentarios
Adam Barber
Adam Barber el 30 de Oct. de 2015
How much data are you working with vs. how much available memory do you have?
You can use the "memory" command to get a sense of how much memory MATLAB has available at the moment.
Adam
Adam el 30 de Oct. de 2015
Editada: Adam el 30 de Oct. de 2015
If you are working with large amounts of data you have to use methods to break the data up into chunks to load and process a bit at a time. How you do this depends on the nature of your data and which parts of it you need simultaneously, etc.
For example, a matfile allows you to work on large data sets without loading them into memory, but you have to get your data into a matfile in the first place.
At my work we occasionally work with large 3d data sets that are too big to feasibly fit in memory at any one time so I wrote a function that will read these in a block at a time and write them out to a matfile where the large data volume can be manipulated using the same indexing instructions, but remaining in file. This is slower than accessing data in memory of course, when the data can fit in memory, but it is an option.
If your data is in some arbitrary format though you have to work out how to split it up into manageable-sized chunks.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Workspace Variables and MAT-Files en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by