<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#cccccc" text="#000000">
<font face="Times New Roman">Hello,<br>
<br>
I am trying to make a script to process some data. Right now I have a
little trouble with reading this data onto my variables, that I can´t
figure out from the Scilab help. I use Scilab-4.1.2 on Windows 98.<br>
<br>
I am a beginner with this kind of program (Scilab, Octave or Matlab), I
appologise for what seems to me a very basic question. But I have tried
my best to understand it by now.<br>
<br>
My data file is:<br>
</font>
<hr size="2" width="100%"><font face="Times New Roman"><font
 face="Courier New, Courier, monospace">4.02    45<br>
4.26    29.9<br>
4.41    30<br>
4.43    30.1<br>
4.75    19.9<br>
4.97    20<br>
5    20.1<br>
5.26    14.9<br>
5.57    15<br>
5.6    15.1<br>
5.7    15.1<br>
5.87    10.9<br>
6.24    11<br>
6.46    11.1<br>
6.61    7.9<br>
7.2    8.1<br>
7.27    8.2<br>
7.32    8<br>
8.23    4.9<br>
9.15    5<br>
9.55    5.1<br>
9.7    5.1<br>
17.36    1.9<br>
17.8    2.5<br>
18.4    2.4<br>
19.36    2<br>
<br>
</font></font>
<hr size="2" width="100%"><font face="Times New Roman"><br>
The first lines of my main function are:<br>
<br>
</font>
<hr size="2" width="100%"><font face="Courier New, Courier, monospace"> 
Z = read('(...path...)\input.txt',-1,2);<br>
  X = Z(1)';<br>
  Y = (Z(2))';<br>
</font><font face="Times New Roman"><font
 face="Courier New, Courier, monospace">//  X = Z(1);<br>
//  Y = Z(2);</font><br>
</font>
<hr size="2" width="100%"><br>
Using the debugger I have found that the Z matrix has all the data on
the input file. Now I wanted to have on column of data on X and Y
vectors. I have tried the commented two lines. All these tries had the
same result: after the execution of the third line X has the value 4.02
and only; Y has 4.26 value, and only. Z has all the data values in the
form [ aa.a bb.b; cc.c dd.d; ... ].<br>
<br>
What should I do?<br>
<br>
Thank you in advance,<br>
<br>
Andre<br>
<br>
</body>
</html>