[Scilab-users] Help with reading data (csvRead)

Samuel Gougeon sgougeon at free.fr
Sat Dec 10 16:41:36 CET 2016


Le 10/12/2016 16:18, Claus Futtrup a écrit :
> Hi Samuel
>
> Indeed it looks simpler than using csvRead, I will look into this 
> function as well. It looks like it cuts off some of the decimals.

Very unlikely. At least not a single one for the full file you sent to me:
f = mgetl(filename);
f(1:5) = [];
s = sprintf("%9.3f %+10.4f %+10.4f  \n",Mread);
and(f==s)

-->f = mgetl(filename);
-->f(1:5) = [];
-->s = sprintf("%9.3f %+10.4f %+10.4f  \n",Mread);
-->and(f==s)
  ans  =
   T

Trailing zeros are not displayed in the console. This can be misleading 
(and is unconvenient), but actual values are ok.

Samuel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20161210/04309d2e/attachment.htm>


More information about the users mailing list