I'm running a long and complex program for data analysis that runs perfectly fine on a colleague's computer.
However, when I try to run it, I get the following error:
??? Out of memory. Type HELP MEMORY for your options.Error in ==> NonRephasingC16_120 at 216SR(tn,:,:)=SS;
(the last line is the line of code in which it apparently breaks, NonRephasingC16_120 is the name of the program.)
Typing "HELP MEMORY" yields that I should run the "memory" command, which gives the following results:
>> memoryMaximum possible array: 148 MB (1.555e+008 bytes) *Memory available for all arrays: 822 MB (8.624e+008 bytes) **Memory used by MATLAB: 889 MB (9.319e+008 bytes)Physical Memory (RAM): 3571 MB (3.745e+009 bytes)* Limited by contiguous virtual address space available.** Limited by virtual address space available.
I've tried the pack command and closing all other programs on the computer. I've also attempted to mess with the code to see if I can make the offending array smaller, but it does not look like it can be done. Yes, we are certain that the program being run is identical.
Is there some kind of setting I can change, either in Matlab or on my computer, that will enable it to run properly? If I have to get a new computer, what parameter would help this to run well?
I'm currently running windows 7, as is my coworker who can run the program. My computer is a dell optiplex 980. Matlab version is 7.11.0(R2010b)
Best Answer