how to solve out of memory error in matlab using windows 7 32 bit version

3 views (last 30 days)
now i am using MATLAB R2013a 8.1 version.my pc is windows 7 32 bit 4GB RAM virtual memory is 12285 MB. i start MATLAB that time it shows memory is >> memory Maximum possible array:513 MB Memory available for all arrays:735 MB Memory used by MATLAB:387 Mb Physical memory(RAM: 3005 MB but if i load 2592*3888*3 size image, it just read and show only. if i perform any operation it display out of memory . what is the remedy for this problem? if i change 64 bit , i will get output or not ?

Answers (2)

Jan
Jan on 8 Aug 2013
32 bit systems are limited to 4GB RAM. In real-world machines, up to about 3.5GB RAM can be used for applications, which can create objects with up to 2.1GB size, roughly spoken.
So installing a 64 bit OS and Matlab will increase the available memory massively. Nobody can guarantee, that the program works afterwards, because yopu can even exhaust 512 GB of RAM with a sufficient piece of work. But a success is much more likely compared to a 32 bit system.

sumathi
sumathi on 8 Aug 2013
thanks for your response. i need information about matlabpool
  3 Comments
sumathi
sumathi on 9 Aug 2013
i didn't understand about that comment.but my doubt is that comment is useful for memory optimization or not?
Jan
Jan on 9 Aug 2013
@sumathi: No, I mean comments here in the forum. "thanks for your response. i need information about matlabpool" is not an answer to the original question, but you have posted it in the section for answers. When you mean my answer, post this as a comment to my answer.
Btw. In Matlab code (and any other programming language I know) comments do not concern the memory, because they do not have any effects to the execution of the program. They explain, what the program should do and help to find bugs. Or does "memory optimization" mean, that the programmer can memorize the intention of the code?

Sign in to comment.

Categories

Find more on Performance and Memory in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!