[Top][All Lists]

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

Re: Slow Processing Issue

From: Philip Nienhuis
Subject: Re: Slow Processing Issue
Date: Wed, 12 Jul 2017 12:37:22 -0700 (PDT)

Fritz Sonnichsen wrote
> Thanks all!
> I just looked at Francesco's post (busy week here) and wrote up the 
> script using textread. I had avoided it because matlab is obsoleting 
> textread but I am more than happy to use it. This solved the problem--it 
> is much faster.  I ran 135,000 records in 13.6 seconds.
> The pertinent code area was:
> [C,R,V]= textread 
> (filename,"%*s,%f,%*f,%*f,%*f,%f,%f,%*f,%*f,%*s,%*s",'delimiter',',');
> I had to use the "delimiter as I am using CSV.  The "asterik" format was 
> handy to avoid using up memory.

If you have the io package installed, you can also use csv2cell to read such
As csv2cell is a binary function it is much, much faster than textread which
is a mere .m function.


View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

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