help-octave
[Top][All Lists]
Advanced

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

Re: reading text into octave


From: Przemek Klosowski
Subject: Re: reading text into octave
Date: Tue, 29 Mar 2011 11:35:32 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b2 Thunderbird/3.1.7

On 03/29/2011 10:47 AM, senator wrote:

here is the  sample data I made to learn how to do this:
14860,20110301,0051,11,CLR, ,10.00,
14860,20110301,0151,11,SCT022, ,10.00,
14860,20110301,0251,11,CLR, ,10.00,
14860,20110301,0351,11,CLR, ,10.00,


Please say more about what version of Octave you are running, on what OS, and what errors you're seeing. On my Linux computerOCTAVE_VERSION returns ans = 3.2.4, and when I copied your data into a file, and did csvread('x') I got ans =

      14860   20110301    51      11     0     0      10 0
      14860   20110301   151      11     0     0      10 0
      14860   20110301   251      11     0     0      10 0
      14860   20110301   351      11     0     0      10 0

Which seems correct modulo the strings are not supported as input data and treated as zeros.

so far i am getting errors , sometimes the errors mention dlmread even
though i am using csvread?

Because, as the manual says, csvread uses internally dmlread so if there are input reading errors they pop up in dmlread.


reply via email to

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