[Scilab-users] Reading single column data for processing

Lester Anderson arctica1963 at gmail.com
Fri Apr 25 21:53:34 CEST 2014


Thanks Denis, that is what I needed to know.
Cheers
Lester


On 25 April 2014 17:25, CRETE Denis <denis.crete at thalesgroup.com> wrote:

> 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
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140425/53116f3e/attachment.htm>


More information about the users mailing list