[Scilab-Dev] SEP: csv read write functions
Michaël Baudin
michael.baudin at scilab.org
Fri Mar 18 14:43:46 CET 2011
Le 16/03/2011 10:25, Serge Steer a écrit :
> probably Matlab does something like cvstr (parse an expression and
> evaluate it) . It is more flexible but less efficient. If you are
> looking for efficiency you should restrict to real or integer numbers.
> The Matlab str2double may be emulated using cvstr. the "45j" or "45i"
> feature is the most difficult to handle, but it can be solved by a
> preprocessing that changes the regular expressions [0-9]i and [0-9]j
> to add a *.
You probably mean "evstr". As far as I understand Matlab's function, no.
It makes repeated calls to the sscanf function, until something works.
The process stops when one scan works. If no scan works, this is an
error. This is probably not as fast as possible. I do not know if using
regexps to do this is easy within a compiled source code. I will suggest
Allan to see this topic.
Regards,
Michaël Baudin
--
Michaël Baudin
Ingénieur de développement
michael.baudin at scilab.org
-------------------------
Consortium Scilab - Digiteo
Domaine de Voluceau - Rocquencourt
B.P. 105 - 78153 Le Chesnay Cedex
Tel. : 01 39 63 56 87 - Fax : 01 39 63 55 94
More information about the dev
mailing list