From: Kimberly on
"Kimberly " <k.moravec(a)cs.ucl.ac.uk> wrote in message <i1htdm$a00$1(a)fred.mathworks.com>...
> "Adam Thibideau" <adam.thibideau(a)gmail.com> wrote in message <i1g84p$db6$1(a)fred.mathworks.com>...
>
> > > >
> > > > I am on a 32bit system with 3GB of physical RAM .
> > > >
> > > > If there is nothing I can do to increase the contiguous memory, is there a work around for this??
> > > >
>
> You perhaps could try memmapfile. It opens the file and, instead of reading the data into memory, it returns a buffer which looks AS IF the data is loaded into memory. Analogous to java's Java.nio.MappedByteBuffer, and a vast improvement fiddling around with a random access file.
>
> Cheers,
> Kimberly

I forgot to say you would need to convert your datafile to binary.

You could, however, do this without using much RAM by opening your text file, reading one line, and writing it to the binary file. I believe memmapfile handles different data types ... someone may correct me on this!

Kimberly