'Out of memory problems'

1 view (last 30 days)
pamela sulis
pamela sulis on 30 Oct 2015
Edited: Adam on 30 Oct 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 Comments
Adam Barber
Adam Barber on 30 Oct 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 on 30 Oct 2015
Edited: Adam on 30 Oct 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.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!