[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Textread from io package
From: |
Daniel Arteaga |
Subject: |
Textread from io package |
Date: |
Tue, 09 Apr 2013 15:28:52 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 |
Hi,
The following piece of code works with Matlab:
[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)
This code should read the first four columns of the attached text file
and discard the rest. How can it be adapted to Octave?
I have tried several things like replacing *[^\n] by *, adding and
'endofline' option, all without success.
Any clue?
Thanks
Daniel
test.log
Description: Text Data