Prev: progress bar and time display
Next: www.cnnikebrand.com wholesale new jordans,cheap nike dunk,dunk shoes
From: Bruce Bowler on 3 Jun 2010 14:02 I have a vector of datenums (appx 200,000 of them) that I'd like to convert to 6 vectors, 1 for each component (year, month, day, etc). Clearly I can use a loop to do it, but it seems there ought to be a more "matlab like" way to do it. Any hints? Thanks! Bruce
From: Frank on 3 Jun 2010 14:22 On Jun 3, 1:02 pm, Bruce Bowler <bbow...(a)bigelow.org> wrote: > I have a vector of datenums (appx 200,000 of them) that I'd like to > convert to 6 vectors, 1 for each component (year, month, day, etc). > > Clearly I can use a loop to do it, but it seems there ought to be a more > "matlab like" way to do it. > > Any hints? > > Thanks! > Bruce Try datevec...........it takes a vector of datenums.
From: Bruce Bowler on 3 Jun 2010 14:35 On Thu, 03 Jun 2010 11:22:21 -0700, Frank set fingers to keyboard and typed: > On Jun 3, 1:02 pm, Bruce Bowler <bbow...(a)bigelow.org> wrote: >> I have a vector of datenums (appx 200,000 of them) that I'd like to >> convert to 6 vectors, 1 for each component (year, month, day, etc). >> >> Clearly I can use a loop to do it, but it seems there ought to be a >> more "matlab like" way to do it. >> >> Any hints? >> >> Thanks! >> Bruce > > Try datevec...........it takes a vector of datenums. Is that new? I don't think it worked in older versions and didn't bother to try in the version I'm on now... My bad. Bruce
From: dpb on 3 Jun 2010 15:35
Bruce Bowler wrote: .... > Is that new? I don't think it worked in older versions and didn't bother > to try in the version I'm on now... My bad. Goes back to R11, anyway...that's oldest installed here (of course, newest is only R12 ;) (or :(, depending). :) -- |