MATLAB: How to find out missing dates from the given data

finding missing valuesseparating months

I have the data on daily basis year wise, each day 2 observations and if i need the data from June to Sept, how i can separate in that format, if once i got the data in this how can i find out missing values in that.

Best Answer

You convert your dates into date numbers using datenum. Create your required dates into date numbers and then use ismemebr or intersect
Eg:
d0 = '01-June-2017' ;
d1 = '30-Sep-2017' ;
d = datenum(d0):datenum(d1) ;
days = datestr(d) ;