help-octave
[Top][All Lists]
Advanced

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

RE: Is it possible to load date values from CSV file?


From: CdeMills
Subject: RE: Is it possible to load date values from CSV file?
Date: Mon, 20 Dec 2010 06:37:37 -0800 (PST)


Tim Rueth wrote:
> 
> 
> 
> But this code doesn't quite work, because I need to convert the cell data
> in
> column 2 to numbers, like a "cell2num" function which I couldn't find.
> 
> Question #1:  How do I assign numbers stored as cells in column 2 to just
> a
> normal number array?
> Question #2:  It looks like it's the datenum(char... part that is really
> slowing things down.  Is there a faster way to read in date strings and
> convert them to datenums?
> 
1) help cell2mat
2) if most dates are within a small range, convert the earliest one to a
datenum, and for the others compute the offset in days yourself.

Pascal
-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/Is-it-possible-to-load-date-values-from-CSV-file-tp3094564p3095599.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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