[Scilab-users] read format

Samuel Gougeon sgougeon at free.fr
Mon Oct 12 16:57:07 CEST 2015


Hello,

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