help-octave
[Top][All Lists]
Advanced

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

Re: Textread from io package


From: Nicholas Jankowski
Subject: Re: Textread from io package
Date: Wed, 10 Apr 2013 09:32:30 -0400

On Wed, Apr 10, 2013 at 9:24 AM, Daniel Arteaga <address@hidden> wrote:
Dear PetrSt,

Al 10/04/13 14:18, En/na PetrSt ha escrit:
Daniel Arteaga-2 wrote

[Trial Event_Type Code
Time]=textread('test.log','%d%s%s%d%*[^\n]','headerlines',5);

In Octave 3.6.2 raises an error (both tested in Ubuntu 12.10 and Windows)

1) What type of error? First error I got was related to absence of number of
repeating. Despite the manual to textread it seems that this input argument
is not optional, so textread(file,format,[],options), or similar, must be
specified.

I noticed this first error. That there is a bug whenever you only specify 'headerlines' and not any other option.

2) Textread doesn't return single argument. Equal number of outputs to
format specifier must be given instead.

I think that was a problem of automatic line wrapping in the email client. I meant:

Trial Event_Type Code  Time]= ...
textread('test.log','%d%s%s%d%*[^\n]','headerlines',5);

3) It doesn't work anyway. I tried also textscan with similar result, i.e. I
got the output but the parsing was incorrect. Even adding 0\t to several
first lines to got the same formating for those lines didn't help.

Same happened to me


glad the manual code worked, but has this reveled an actual bug in textread?

reply via email to

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