help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help-me. How do I read the data from the first and second columns from a


From: Varlei Everton Menconi
Subject: Help-me. How do I read the data from the first and second columns from a file in this format in Octave ?
Date: Wed, 20 Mar 2013 16:15:13 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2


Hello,


Please, I would like to know how can I only read the first and second column of a data file (ascii, at attached) in this format?
I need to create an array of 2 columns with the elements the rows from the first and second column of this file.
(
The other columns are not used in my application).

Note: The number of lines of this file is not fixed. May vary according to the records received from a day.

1349145660        29925.1        -434.77        46505.5        1/10/2012        23:41:0
1349145720        29925.1        -434.77        46505.4        1/10/2012        23:42:0
1349145780        29924.8        -434.75        46504.9        1/10/2012        23:43:0
1349145840        29924.7        -434.76        46504.7        1/10/2012        23:44:0
1349145900        29924.7        -434.75        46504.7        1/10/2012        23:45:0
1349145960        29924.7        -434.74        46504.5        1/10/2012        23:46:0
1349146020        29924.7        -434.72        46504.4        1/10/2012        23:47:0
1349146080        29924.6        -434.7        46504.3        1/10/2012        23:48:0
1349146140        29924.6        -434.68        46504.3        1/10/2012        23:49:0
1349146200        29924.5        -434.65        46504        1/10/2012        23:50:0
1349146260        29924.4        -434.64        46503.9        1/10/2012        23:51:0
1349146320        29924.3        -434.62        46503.7        1/10/2012        23:52:0
1349146380        29924        -434.62        46503.3        1/10/2012        23:53:0
1349146440        29923.9        -434.62        46503.1        1/10/2012        23:54:0
1349146500        29923.7        -434.62        46502.8        1/10/2012        23:55:0
1349146560        29923.4        -434.61        46502.4        1/10/2012        23:56:0
1349146620        29923.1        -434.61        46502.1        1/10/2012        23:57:0
1349146680        29922.9        -434.61        46501.7        1/10/2012        23:58:0
1349146740        29922.6        -434.65        46501.3        1/10/2012        23:59:0
1349146800        29922.4        -434.67        46500.9        2/10/2012        0:0:0


I'm trying to use the load command, but do not know how to refer to the columns as they do not have names.
m = load("-ascii", "sampleDataFile.txt",  ??????!!!! )

Other questions:
How to read the data (column 5) and time (column 6) of the event, in the string format or label ?


Thank you very much for the help.


Varlei Everton Menconi
address@hidden
INPE-National Institute for Spacial Research
town São José dos Campos, state SP
Brazil.

Attachment: sampleDataFile.txt
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]