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

Adam
Adam 2015년 10월 30일
What are you trying to do? How much memory are you using when it tells you this? If it says this when you create a 20 GB array then it wouldn't surprise me, if it says it when you create a scalar then that is a bigger problem.
pamela sulis
pamela sulis 2015년 10월 30일
I have a great number of data! Matlab crashes all time that i use it
Adam Barber
Adam Barber 2015년 10월 30일
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 2015년 10월 30일
편집: Adam 2015년 10월 30일
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.

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

답변 (0개)

카테고리

질문:

2015년 10월 30일

편집:

2015년 10월 30일

Community Treasure Hunt

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

Start Hunting!

Translated by