help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: about reading large text files (> 10 GB) into an array


From: Francesco Potortì
Subject: Re: about reading large text files (> 10 GB) into an array
Date: Thu, 04 Oct 2012 11:04:34 +0200

>I have a very large text file (say, 10 GB) each line of which contains
>a float-point number. Can I read all the numbers in this file into an
>array in Octave? I tried textread() but it complains something about
>"out of bound" array, which I think may suggest Octave's incapability
>of handling large arrays.

Most times, people try to use complex ways to read numbers into Octave.
The simplest and fastest of functions is perfect for text files
containing arrays or matrices of numbers.

Your case is one of those common simple cases: just use `load'.

-- 
Francesco Potortì (ricercatore)        Voice:  +39.050.315.3058 (op.2111)
ISTI - Area della ricerca CNR          Mobile: +39.348.8283.107
via G. Moruzzi 1, I-56124 Pisa         Fax:    +39.050.315.2040  
(entrance 20, 1st floor, room C71)     Web:    http://fly.isti.cnr.it


reply via email to

[Prev in Thread] Current Thread [Next in Thread]