[Scilab-users] Wrapped numeric input files

classic Classic list List threaded Threaded
2 messages Options
Rafael Guerra Rafael Guerra
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] Wrapped numeric input files

Dear Scilab’ers,

 

Has anyone come across wrapped numeric input files, where the data spans over thousands of lines?

It takes ages using loops to read data like in example below with 20 input curves with index support from 1 to 4200 spreading over >20,000 lines:

 

1

     12       0       3       2    -29     130

    130     256     248     129       0     123

    247      12       1       3       4       4

      4       3                       

2                                             

     10       0       3       2    -2    132

    132     250     245     127       0     122

    244      12       1       3       4       4

      3       4

….

….

4200

     1       2       3       2    -9     132

    112     25     145     17       0     122

    214      112       1       3       4       4

      1      1 4

 

Any tips are welcome.

 

Regards,

Rafael

 


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Rafael Guerra Rafael Guerra
Reply | Threaded
Open this post in threaded view
|

Re: Wrapped numeric input files

Never mind previous question, these files can be read very fast with the function mfscanf().

 

Regards,

Rafael

 


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users