|
From: | Nicholas Jankowski |
Subject: | Re: Textread from io package |
Date: | Wed, 10 Apr 2013 09:32:30 -0400 |
Dear PetrSt,
Al 10/04/13 14:18, En/na PetrSt ha escrit:
Daniel Arteaga-2 wrote1) What type of error? First error I got was related to absence of number of
[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)
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
[Prev in Thread] | Current Thread | [Next in Thread] |