[Scilab-users] Reading single column data for processing

CRETE Denis denis.crete at thalesgroup.com
Fri Apr 25 18:25:16 CEST 2014


Hello,
I would try
z=fscanfMat(‘input.txt’);
y=f(z)
fprintfMat(‘output.txt’,[z,y]);

HTH
Denis
De : users [mailto:users-bounces at lists.scilab.org] De la part de Lester Anderson
Envoyé : vendredi 25 avril 2014 18:01
À : International users mailing list for Scilab.
Objet : [Scilab-users] Reading single column data for processing


A quick query.

Been a while since I have used Scilab now, but I need to read in a column data set and process this, and then write out the results as the input column plus the computed value.

Have an array of the form:

1.0
2.0
3.0
.
.
.
.
.
value(n)

e.g.

read (input.txt) --> array(z) i.e. read all values in the file from 1 to n (end of file)

y=function * array(z)
write (output.txt)  --> write 2 column result (input value, computed value)

Things have changed a bit in 5.5.0

Cheers

Lester
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140425/6ed716a6/attachment.htm>


More information about the users mailing list