text file I/O

CHEZE David 227480 david.cheze at cea.fr
Thu Jul 8 12:18:36 CEST 2010


Hello,
 
is there a way to extract 'quickly' a real matrix from an ASCII text file of the type: 
 
 
date heure T1 T2 T3 T4 T5
01/02/03 12:22 11 2 3 3.2 4.5
01/02/03 12:23 11 3 3 4 3 
01/02/03 12:24 1 3 3 4 4.3 
...
 
fscanfMat fails while reading first non real element (date typically).
 
Using formatted input fonctions like mfscanf or mgetl and msscanf combination could be automated to adapt to different number of numerical series : has anyone already written something like,that can be shared ?
 
Thanks for your advises,

David Chèze

  

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20100708/764d0bf2/attachment.htm>


More information about the users mailing list