Re: Strategey Reading VERY large files
- From: "Pete" <pharring@xxxxxxxxxxxxxxx>
- Date: Fri, 28 Apr 2006 22:52:15 GMT
I found fscan to be considerably faster for reading text coded numbers than
dlmread, especially if you read line by line.
I hope you are using a 64-bit system, because 32 bit matlab and windoze can
only handle 2 GB of memory max.
Best wishes,
Pete
"MAK" <mak2000@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:ef3177e.1@xxxxxxxxxxxxxxxxxxx
One possible solution is use dlmread in a loop, each iteration of
loop would read set of lines from file, process them and then go to
next iteration...
-----------
Syntax of dlmread
M = dlmread('filename', delimiter, R, C) reads numeric data from the
ASCII-delimited file filename, using the specified delimiter. The
values R and C specify the row and column where the upper left corner
of the data lies in the file. R and C are zero based, so that R=0,
C=0 specifies the first value in the file, which is the upper left
corner
<http://www.geocities.com/mak2000sw/>
Jan wrote:
Hey
I have to read very large text, dat files and perform computations.
These files are like 1 TB of data.
What is the best strategy to read this, as the physical memory of
normal computer platforms are not obviously big enough!
I have been thinking of reading line by line and performing the
computation line by line and then save the data. and go on to the
next line. But this is also a problem as i donnot understand how to
implement this. I mean i need for some calculations several
different
columns from the textfile, and the locations of these columns is
contained in the header row.
any suggestions
.
- Follow-Ups:
- Re: Strategey Reading VERY large files
- From: daniel ennis
- Re: Strategey Reading VERY large files
- References:
- Strategey Reading VERY large files
- From: Jan
- Re: Strategey Reading VERY large files
- From: MAK
- Strategey Reading VERY large files
- Prev by Date: imaqhwinfo not detecting camera
- Next by Date: Does function delete pointers when returned
- Previous by thread: Re: Strategey Reading VERY large files
- Next by thread: Re: Strategey Reading VERY large files
- Index(es):
Relevant Pages
|