Thread Subject: Impossible to load sparse matrix saved under another matlab version

Subject: Impossible to load sparse matrix saved under another matlab version

From: Maxime

Date: 3 Jun, 2011 23:53:04

Message: 1 of 2

Dear all,

I know this question has been asked quite a few times, but no answer did the job for my particular problem.

I have a large sparse matrix A (500x11534336) that I want to save on one machine (machine 1) and load on another (machine 2). The specs are:

machine 1: Version 7.11.0.584 (R2010b) 64-bit (glnxa64) running on linux
machine 2: Version 7.8.0.347 (R2009a) 32-bit (maci) running on OSX

First strange thing, under the machine 1, if I do save A, I get the following message

Warning: Variable 'A' cannot be saved to a MAT-file whose version is older
than 7.3.
To save this variable, use the -v7.3 switch.
Skipping...

That is kind of strange. Well, I bypass this problem by using save -v7.3 A instead and that works.

But then, when I want to load this matrix on machine 2, I get the following error:

??? Error using ==> load
Can't read file /path/to/file/A.mat.

But I can check the content of the file

whos -file A

retrurns

A 500x11534336 3462437856 double sparse

Note that, even more weird, these issues do not appear if I follow the exact same process with a smaller sparse matrix (500x4062364).

Any help would be very appreciated.

Thanks!

Maxime
 

Subject: Impossible to load sparse matrix saved under another matlab version

From: Matt J

Date: 4 Jun, 2011 03:13:03

Message: 2 of 2

"Maxime " <hystomagna@gmail.com> wrote in message <isbs50$70u$1@newscl01ah.mathworks.com>...
>
> A 500x11534336 3462437856 double sparse
>
> Note that, even more weird, these issues do not appear if I follow the exact same process with a smaller sparse matrix (500x4062364).
=================

Your matrix is too large for 32-bit MATLAB to handle.
 
Under 32-bit Windows, a MATLAB session can use at most 2GB, or 3GB if you activate the /3GB switch. Your matrix is more than 3GB.

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
load save v73 e... Maxime 3 Jun, 2011 19:54:08
rssFeed for this Thread

Contact us at files@mathworks.com