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

HTH
Denis
De : users [mailto:[email protected]] 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
_______________________________________________
users mailing list
[email protected]
http://lists.scilab.org/mailman/listinfo/users

Reply via email to