This should be straight-forward in MATLAB I just don't know how and am stuck. I have data that looks like this below that is in the form: mm/dd/yyyy hh:mm windspeed
- this is hourly data spanning years from 1991 up to the present (2013) of cell arrays and numeric array:
8/22/1993 23:00 2.381453514
8/23/1993 0:00 3.39369154
8/23/1993 1:00 5.398661613
8/23/1993 2:00 7.231492996
8/23/1993 3:00 9.187699318
8/23/1993 4:00 9.802619934
8/23/1993 5:00 8.85418129
8/23/1993 6:00 9.889941216
8/23/1993 7:00 10.4628706
8/23/1993 8:00 10.8967123
8/23/1993 9:00 10.12729263
8/23/1993 10:00 9.106620789
8/23/1993 11:00 7.600066185
8/23/1993 12:00 6.597990036
8/23/1993 13:00 6.764455795
8/23/1993 14:00 7.360760689
8/23/1993 15:00 5.828835011
I am trying to extract the third column only (windspeed
). I need to be able to change the date range to extract a month at a time for example ALL the rows containing the month "08" for August of the year 1993 and then for future use all the rows containing "09" for September and the year 2013. I'm not sure if it's better to use datenum
or the find function and then how to code this for either case.
I am using xlsread
to read the .csv
file with a portion of the data shown above.