How can I increase the memory allocated to Matlab R2014a on 64-bit Windows 8?

1 view (last 30 days)
My machine had a 4 GB RAM and I recently installed an extra 8 GB,now having a total of 12 GB RAM. When I go to Computer-> Properties it also shows that I have an available 12 GB RAM. However, when running my program I get an OUT OF MEMORY error. After typing memory in the MATLAB prompt I got the following: Maximum possible array: 17588 MB (1.844e+10 bytes) * Memory available for all arrays: 17588 MB (1.844e+10 bytes) * Memory used by MATLAB: 1597 MB (1.675e+09 bytes) Physical Memory (RAM): 12163 MB (1.275e+10 bytes)
  • Limited by System Memory (physical + swap file) available.
So, it seems that the memory used by MATLAB is limited and does not take full advantage of the system’s memory.. Is some way to determine the memory allocated to MATLAB? I am using a 64-bit Windows 8. Many thanks!

Accepted Answer

Jan
Jan on 3 Aug 2014
Edited: Jan on 3 Aug 2014
The information show, that Matlab can allocate an array with 17GB. Beside the physical RAM, a swap file allows to allocate this amount of memory.
The impression is wrong, that the memory used by Matlab is limited.
Please post the command, which causes the Out-of-memory error. Perhaps there is simply a bug in it.
  2 Comments
Trishia Chemaly
Trishia Chemaly on 28 Feb 2017
Hello! I am having the same problem as described above while using a 64-bit 8 GB RAM machine.
The function that is causing the problem is rectifyStereoImages(I1,I2,stereoParams); I1 and I2 are 600x800x3 RGB images
Can you possibly help?
Jan
Jan on 28 Feb 2017
@Trishia: Of course I can try to help. Please open a new thread for a new problem. Then post the concerned line of code or better the relevant part of the code. Note that the standard answer for memory problems is always the same: Install more RAM. I some cases the problem is caused by a bug like: rand(1e6) instead of the actually wanted rand(1, 1e6).

Sign in to comment.

More Answers (1)

Effrosyni
Effrosyni on 4 Aug 2014
Many thanks. I found out what was wrong.

Categories

Find more on Startup and Shutdown 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!