[Scilab-users] read format
grivet
grivet at cnrs-orleans.fr
Mon Oct 12 18:00:10 CEST 2015
Thank you Samuel, this works like a charm, even though the last step
(evstr) takes a couple of minutes (80000 lines!).
For a completely different solution: read the file into emacs, define a
rectangle of width 20 chars and height the whole file, delete this
rectangle, search for ".1" and erase every occurence of this string.
Thanks to everybody,
JP Grivet
> Le 12/10/2015 14:26, grivet a écrit :
>> Hello,
>> I have a data file of about 80k lines. A typical line looks like this:
>> 01/03/2015 00:01:00;5.49;1
>> (date time; value;parameter). I am only interested in the field
>> "value", which can be 3 or 4
>> characters wide (i.e. 5.49 or 5.4).
>> How can I extract the desired data from this file ?
> .
> Likely with
> M = csvRead(TheFileName, ";", ".", "string");
> values = evstr(M(:,2));
>
> Samuel Gougeon
>
More information about the users
mailing list