[Scilab-users] using csvRead
CRETE Denis
denis.crete at thalesgroup.com
Fri Oct 14 00:51:01 CEST 2016
Hello Philipp,
In this case I first attempt to read first (e.g. with “mopen” and “getl”) and then split the strings with “tokens” where the feature of multiple separators exists.
Of course you can also use “cvsRead” with one separator and then use “tokens” to finish with the other separators.
HTH
Denis
[@@ THALES GROUP INTERNAL @@]
Unité Mixte de Physique CNRS / THALES
1 Avenue Augustin Fresnel
91767 Palaiseau CEDEx - France
Tel : +33 (0)1 69 41 58 52 Fax : +33 (0)1 69 41 58 78
e-mail :
denis.crete at thalesgroup.com<mailto:denis.crete at thalesgroup.com> <mailto:%20denis.crete at thalesgroup.com>
http://www.trt.thalesgroup.com/ump-cnrs-thales
http://www.research.thalesgroup.com
De : users [mailto:users-bounces at lists.scilab.org] De la part de Philipp Mühlmann
Envoyé : vendredi 14 octobre 2016 00:08
À : International users mailing list for Scilab.
Objet : [Scilab-users] using csvRead
Dear Scilab users,
having a data file (*.cvs) containg following format:
HEADER-Line
dd.mm.yyyy, HH:MM:SS.MS<http://SS.MS>, value01, value02
dd = day
mm = month
yyyy = year
HH = hour
MM = minute
SS = second
Ms = milli second
ValueXY = numerical value
Is it possible to use cvsRead in such a way to define the separator beeing ',' and ':' at the same time?
Background:
desired Matrix after reading the file is
M = [dd mm yyyy HH MM SS MS value1 value2]
Thank you,
Philipp
--
In Kanada is' ka' na' da. Sonst wär' Kanada Jemanda.
There we have the salad.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20161014/4dc5bfbe/attachment.htm>
More information about the users
mailing list