[scilab-Users] Reading data files

samuel.enibe at unn.edu.ng samuel.enibe at unn.edu.ng
Mon Apr 18 19:46:51 CEST 2011


Dear Sir,
PLEASE KINDLY LET ME KNOW WHICH COMMAND TO USE TO ATTACH LABELS TO EACH BAR OF A SCILAB BAR CHART PRODUCED WITH THE  bar FUNCTION.
IN MATLAB THIS IS DONE WITH THE xlabel FUNCTION.

THE FUNCTION   xlabel DOES NOT PRODUCE THE REQUIRED EFFECT IN SCILAB
THANKS.

SAMUEL

Sent from my Nokia phone
-----Original Message-----
From: Samuel GOUGEON
Sent:  17/04/2011 11:18:48 pm
Subject:  Re: [scilab-Users] Reading data files

  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