[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help-me. How do I read the data from the first and second columns fr
From: |
CdeMills |
Subject: |
Re: Help-me. How do I read the data from the first and second columns from a file in this format in Octave ? |
Date: |
Thu, 21 Mar 2013 09:21:05 -0700 (PDT) |
It looks like a CSV file, but there is no visible separator. When you open
the file with a text editor, are there tabulations between the columns ? Do
you notice that the cursor is "jumping" from the last letter of a column to
the first of the next one ?
If so, you can try the dlmread function from octave core, or the dataframe
package from octave-forge package. In the latter case, you write:
data=dataframe('myfile.csv');
data=data.array(:,1:2) %# to extract the two first columns and convert to a
matrix of double.
Regards
Pascal
--
View this message in context:
http://octave.1599824.n4.nabble.com/Help-me-How-do-I-read-the-data-from-the-first-and-second-columns-from-a-file-in-this-format-in-Octav-tp4651077p4651099.html
Sent from the Octave - General mailing list archive at Nabble.com.