Matin Kh
Matin Kh

Reputation: 5178

How to Resolve this Out of Memory Issue for a Small Variable in Matlab?

I am running a 32-bit version of Matlab R2013a on my computer (4GB RAM, and 32-bit Windows 7). I have dataset (~ 60 MB) and I want to read it using

ds = dataset('File', myFile, 'Delimiter', ',');

And each time I face Out of Memory error. Theoretically, I should be able to use 2GB of RAM, so there should be no problem reading such small files. Here is what I got when typed memory

Maximum possible array:     36 MB (3.775e+07 bytes) *
Memory available for all arrays:    421 MB (4.414e+08 bytes) **
Memory used by MATLAB:    474 MB (4.969e+08 bytes)
Physical Memory (RAM):   3317 MB (3.478e+09 bytes)

*  Limited by contiguous virtual address space available.
** Limited by virtual address space available.

I followed every instructions I found (this is not a new issue), but for my case it seems rather weird, because I cannot run a simple program now.

System: Windows 7 32 bit
Matlab: R2013a
RAM: 4 GB

Upvotes: 3

Views: 111

Answers (1)

krisdestruction
krisdestruction

Reputation: 1960

Clearly your issue is right here.

Maximum possible array:     36 MB (3.775e+07 bytes) *

You are either using a lot of memory in your system and/or you have a very low swap space.

Upvotes: 2

Related Questions