Results 1 to 2 of 2

Math Help - extracting date ranges from date vectors

  1. #1
    Junior Member
    Joined
    Aug 2008
    Posts
    38

    extracting date ranges from date vectors

    In Matlab, I have a column vector called "dates" including many dates from 1993 to 2009 in the "20-May-2010" format and I'm hoping to find a good way to extract dates in 6 month periods, from Jan-Jun and July-December for each year:

    1993 Jan-Jun contains all dates in this range->vector1
    1993 Jul-Dec vector 2
    1994 Jan-Jun etc.
    1994 July-Dec ....

    I'm having trouble even manually extracting dates by trying, say >"dates(1:6)" - matlab is returning just one number (111223). The dates were originally in serial format, and I used datestr to convert them to their current format ("dd-mm-yyyy")

    I'm grateful for your help.
    Last edited by 2clients; May 20th 2010 at 04:31 PM.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Junior Member
    Joined
    Aug 2008
    Posts
    38
    edit: forgot to mention this is for Matlab.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Question about a date?
    Posted in the Algebra Forum
    Replies: 2
    Last Post: September 13th 2011, 04:36 PM
  2. date of e
    Posted in the Pre-Calculus Forum
    Replies: 3
    Last Post: May 23rd 2010, 05:11 AM
  3. Julian date from current date
    Posted in the Discrete Math Forum
    Replies: 1
    Last Post: April 22nd 2009, 03:03 PM
  4. date on calendar
    Posted in the Math Topics Forum
    Replies: 3
    Last Post: May 4th 2008, 09:01 PM
  5. Solve This and you'll get a date with me
    Posted in the Algebra Forum
    Replies: 4
    Last Post: March 25th 2008, 10:58 AM

Search Tags


/mathhelpforum @mathhelpforum