[Scilab-users] Converting a matrix of string into real
Samuel Gougeon
sgougeon at free.fr
Tue Mar 5 18:12:11 CET 2013
Le 05/03/2013 08:34, Carrico, Paul a écrit :
> .../...
> After reading a text file (mgetl), removing the comments, I've finally
> a matrix of string containing only numbers... what is the fastest way
> to convert those string into reals (I don't remember)?
> using "eval" function is quite slow
In addition to solutions already provided, you may use*strtod()*. It is
made for that.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20130305/d2894ca2/attachment.htm>
More information about the users
mailing list