[Top][All Lists]

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

Re: reading file

From: marco cammarata
Subject: Re: reading file
Date: Tue, 26 Feb 2008 10:12:51 +0100

Dear Stefan and Michael,

Thanks for your suggestions.
I found a function "textread" in the io package of octave-forge that do
the job reasonably.

I then created an octave "library" to read the file.
After having loaded the library (source "lib.octave")
would do the job returning a structure.
On my computer Xeon(TM) CPU 3.06GHz with octave 3.0
it takes 0.5 second to read the attached diagnostics.log
What is funny is that if i skip the first 150 lines (out of 160)
with the following syntax
It takes the same time ! (note that the second execution of the command
is always a bit faster, I'm referring to the first call).

Do you think a oct-file might speed up even further ?
I have no idea on how to write oct file,
any suggestion of something to read ?


On Tue, 2008-02-26 at 09:58 +0100, Michael Goffioul wrote:
> 2008/2/26 marco cammarata <address@hidden>:
> >
> > Dear Stefan,
> >
> > thanks for the suggestion.
> > Unfortunately I forgot to mention that some of the fields I have to read
> > are not numbers but strings.
> > The procedure I'm using can handle that but dlmread can't.
> >
> > Attached please find a "realistic" file
> I think the best you can is then to write a dedicated oct-file that will
> read your data and produce the corresponding octave data structure.
> Michael.

Attachment: diagnostics.log
Description: Text Data

Attachment: lib.octave
Description: Text Data

reply via email to

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