From: us on
"Bruno Luong" <b.luong(a)fogale.findmycountry> wrote in message <hm966l$6pd$1(a)fred.mathworks.com>...
> Are you running a dinosaur Matlab without Mat-file compression us? Mine (2010A) gives this:
>
> disp([sifile.bytes;sjfile.bytes])
> 354319
> 185892
>
> Bruno

well, bruno, THAT is disturbing...
we're (mostly) using r2009b...
let me look at our -stuff-

urs
From: Matt J on
Here's a more extreme example to make the point.


>> [c,m]=computer;
>> A=sprand((m-3)/4+1,1,.0001);

This matrix doesn't consume a lot of memory.

>> whos A
Name Size Bytes Class Attributes

A 536870912x1 644204 double sparse

However, it is not transposable due to memory limits (at least on my machine)

>> A.';
??? Error using ==> transpose
Out of memory. Type HELP MEMORY for your options.

Similarly, reshaping can be a problem

>> reshape(A,2,[]);
??? Error using ==> reshape
Out of memory. Type HELP MEMORY for your options.



The reshaping issue is, incidentally, a real pain when you want to block bin the matrix (see the following thread):

http://www.mathworks.com/matlabcentral/newsreader/view_thread/269676#706745