|
From: | Daniel Arteaga |
Subject: | Re: Textread from io package |
Date: | Wed, 10 Apr 2013 11:22:38 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 |
Al 09/04/13 15:28, En/na Daniel Arteaga ha escrit:
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.
I have tried to workaround the use of textread with dlmread and other functions without success, because the file to parse
(i) has a variable number of columns (ii) there is a mixture of text and numeric dataWhat is the best way to parse these kind of data? (see example in parent post)
Thanks Daniel
[Prev in Thread] | Current Thread | [Next in Thread] |