From: Steven Lord on

"Thomas Britton" <benjamin.britton(a)materials.ox.ac.remove.uk> wrote in
message news:hr156b$5t$1(a)fred.mathworks.com...
> How does the memory cope with such structure arrays?
>
> I'm having trouble with a 4d array approx (230,120,30,100) elements and
> keep on running into memory errors.

That requires a contiguous block of memory roughly 630 MB in size. That's
not huge but it's also not tiny.

> I've coarsely split the array down a bit (into 3 smaller ones, dividing
> the 3rd dimension up) but I've got to then manually work out which bit to
> index and correct appropriately (which works to an extent but is very
> ugly).
>
> I've maxed out the memory settings (on a 4gb 32bit win xp set up).

Read this document, if you haven't already, to learn why your MATLAB session
isn't going to be able to use all 4 GB of memory.

http://www.mathworks.com/support/tech-notes/1100/1106.html

--
Steve Lord
slord(a)mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ