[Users-fr] fscanfMat & fprintfMat

Adrien Vogt-Schilb vogt at centre-cired.fr
Dim 10 Fév 16:54:43 CET 2013


Hi

 From Scilab 5.4, there are new, more efficient tools to write and read 
matrices, those are:
csvRead
csvWrite

Look them in the help

help csvRead
help csvWrite

also have a look to the related commands (csvDefault, csvStringtodouble, 
and so on)

Do you confirm that these will execute much faster?


On 07/02/2013 11:56, Eric levillain (Gmail) wrote:
>
> BUG: Compared to Scilab 5.3.3, fscanfMat and fprintfMat are very slow 
> under Scilab 5.4.0.
>
>
> Hello,
>
> I performed some tests on Scilab 5.3.3 and Scilab 5.4.0 with this 
> following script:
>
>
> ***************************
>
> clc;
>
> clear;
>
> A = ones(1000,1000)+0.1;
>
> tic();
>
> fprintfMat("Matrix.txt", A, "%lg");
>
> s1 = toc();
>
> disp(s1);
>
> fscanfMat("Matrix.txt", "%lg");
>
> s2 = toc();
>
> disp(s2);
>
> ***************************
>
> Output on WIN 7 x64:
>
> On Scilab 5.3.3: s1 = 0.748 and s2 = 2.496
>
> On Scilab 5.4.0: s1 = 1.279 and s2 = 39.812 !!!
>
> ***************************
>
> Output on LINUX x64
>
> On Scilab 5.3.3: s1 = 0.594 and s2 = 2.422
>
> On Scilab 5.4.0: s1 = 0.658 and s2 = 2.473
>
> ***************************
>
> In conclusion, this bug depends on the OS.
>
> Do you know why?
>
> Sincerely yours
>
> Eric
>
>
>
> _______________________________________________
> users-fr mailing list
> users-fr at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users-fr

-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: <https://lists.scilab.org/pipermail/users-fr/attachments/20130210/cbf65090/attachment.htm>


Plus d'informations sur la liste de diffusion users-fr