Re: [Scilab-users] Reading single column data for processing

2014-04-25 Thread Lester Anderson
Thanks Denis, that is what I needed to know.
Cheers
Lester


On 25 April 2014 17:25, CRETE Denis  wrote:

> Hello,
>
> I would try
>
> z=fscanfMat(‘input.txt’);
>
> y=f(z)
>
> fprintfMat(‘output.txt’,[z,y]);
>
>
>
> HTH
>
> Denis
>
> *De :* users [mailto:users-boun...@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@lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
>
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Reading single column data for processing

2014-04-25 Thread CRETE Denis
Hello,
I would try
z=fscanfMat(‘input.txt’);
y=f(z)
fprintfMat(‘output.txt’,[z,y]);

HTH
Denis
De : users [mailto:users-boun...@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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Reading single column data for processing

2014-04-25 Thread Lester Anderson
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@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users