help-octave
[Top][All Lists]
Advanced

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

Re: CSVs, .DATs


From: c.
Subject: Re: CSVs, .DATs
Date: Wed, 2 May 2012 17:47:19 +0200

On 2 May 2012, at 15:26, monkeyboy wrote:

> Hello
> 
> Thanks for all your responses. I notice you have all eschewed comments on
> Excel .
> I'm uploading the smallest file I have from the datalogger. 
> http://octave.1599824.n4.nabble.com/file/n4603206/CR800-14-1-12%28last%29.dat
> CR800-14-1-12(last).dat 


x = csvread ("CR800-14-1-12(last).dat", 4, 1); %% skip 4 rows and 1 column

works fine for me on this file

> I'm also uploading the exact same file opened into Excel and saved off as a
> CSV 
> 
> http://octave.1599824.n4.nabble.com/file/n4603206/CR800test.csv
> CR800test.csv 

csvread ("CR800test.csv", 4, 1); %% skip 4 rows and 1 column

fails as csvread does not recognize the mac-style end-of-line characters ("\r") 
in the the csv file
if you change that to use unix-style end-of-line ("\n") Octave can read that 
file as well.



HTH,
c.

reply via email to

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