The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > UNIX and Linux Applications
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 06-22-2009
skray skray is offline
Registered User
  
 

Join Date: Jun 2009
Posts: 4
Matlab (more generally: sorting data by date)

I'm not sure if this really belongs anywhere on this forum but my previous experiences on here have shown me that you guys are very helpful so I figure I may as well try.

I have a bunch of large 2d arrays in matlab and each has a column for a date that each row corresponds to. The format is yymmdd except for everything for 2000 which is just mmdd.

I need to be able to separate the data based on season (ie DJF, MAM, JJA, SON) but I'm not sure what is the best way to go about it based on the format of the data. I could write a bunch of if statements to decide each season but the 2000 data complicates that method.

Any advice (you don't have to write anything out) would be much appreciated. It's been a few years since my last programming class and I can't remember the best practice for this.