help-octave
[Top][All Lists]
Advanced

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

Re: : new to octave, confused about load(), dlmread et cetera


From: Philip Nienhuis
Subject: Re: : new to octave, confused about load(), dlmread et cetera
Date: Thu, 2 Sep 2010 08:56:53 -0700 (PDT)


Roman.Griego wrote:
> 
> 
>>>Great code, why do you grab the first two lines? in case headers spill
over?
> 
>>>Why do you remove zeros ?
> 
> 
> The original data was an csv export of a sql query done in excel. I
> grabbed the first two lines because row one was my header, the second was
> a related piece of data that didn't really belong with the rest of the
> data. I stripped the zeros because I was making histograms from the data.
> The zeros were added from dlmread to make all the rows the same length, in
> my case all my data are integers greater than one.
> 

Can't you just read it directly from the Excel file then?
There is direct .xls R/W support in octave nowadays (using the octave-forge
io pkg). 
Empty cells in an Excel range are read as NaNs which -reading postings
earlier in the thread- might come in handy, too.

Philip
-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/new-to-octave-confused-about-load-dlmread-et-cetera-tp2402617p2524396.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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