Thread Subject:
Error in loading a very large matrix

Subject: Error in loading a very large matrix

From: Christina

Date: 23 Jul, 2012 13:13:09

Message: 1 of 2

I need to load a 14.6 GB .mat file. However, the maximum possible array that Matlab can produce is 13.8 GB.

Also, the total memory used by Matlab is 480 MB and the physical memory (RAM) is 8 GB.
I cannot resuce the size of my matrix as well.

When I am trying to load this file, after an hour, I get the error: 'Error in load 'filename.mat'.

Any ideas??

Subject: Error in loading a very large matrix

From: Steven_Lord

Date: 23 Jul, 2012 13:28:47

Message: 2 of 2



"Christina " <christina.bakopoulou09@imperial.ac.uk> wrote in message
news:jujil5$pfq$1@newscl01ah.mathworks.com...
> I need to load a 14.6 GB .mat file. However, the maximum possible array
> that Matlab can produce is 13.8 GB.
>
> Also, the total memory used by Matlab is 480 MB and the physical memory
> (RAM) is 8 GB.
> I cannot resuce the size of my matrix as well.
>
> When I am trying to load this file, after an hour, I get the error: 'Error
> in load 'filename.mat'.
>
> Any ideas??

If your MAT-file contains multiple variables: LOAD each one separately,
process it, CLEAR it from memory, and process the next.
If your MAT-file contains one single LARGE variable, see if MATFILE does
what you need:

http://www.mathworks.com/help/techdoc/rn/bs10plx-1.html#bs10ply-2

Alternately find a machine with more memory to LOAD your file. [You might
want to save pieces of that variable to separate MAT-files on that machine,
if you need to process the data on your original machine.]

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
very large matrix Christina 23 Jul, 2012 09:14:11
memory Christina 23 Jul, 2012 09:14:11
load Christina 23 Jul, 2012 09:14:11
rssFeed for this Thread

Contact us