[scilab-Users] Reading data files

Samuel GOUGEON Samuel.Gougeon at univ-lemans.fr
Mon Apr 18 00:18:48 CEST 2011


  Hello,

[NumMatrix, TextHeader ] = fscanfMat(filename)
should do just what you want. If you do not need the header :
NumMatrix = fscanfMat(filename)
should be ok
It is also possible to indicate a format for reading numerical data.
--> help fscanfMat

Regards
Samuel



----- Message d'origine -----
De : Armando Pisani
Date : 17/04/2011 19:44:
> Dear Sir,
>   I use scilab to  perform numerical anlysis. I usually produce data files with an header that describes the content of the file, so that the first line of the file is a list of characters, while the rest of the file is a numerical matrix.
> If I ask scilab to read my files I get an error message. Is there a way to ask scilab to skip one or more lines when reading a file?
>
>    Thank you very much, yours Armando Pisani.




More information about the users mailing list