I have a cell array of dates as strings (format: 'mm/dd/yyyy'), where the string length varies by cell entry from 8 to 10, depending on the date (e.g., n = 8 for '1/1/2015' and n = 10 for '10/10/2015'). I want to convert each cell array entry to its corresponding double as a datenum quantity. I've tried:
id = find(~cellfun( @isempty, regexp( dateList, '/', 'tokenExtents' ) ) );
and
id = find(~cellfun( @isempty, strfind( dateList, '/' ) ) );
but this isn't right. A snippet of the cell array is provided:
dateList = {'9/9/2016';
'9/10/2016';
'10/10/2016';
'10/11/2016'};
datenum, but if not, then you should move towards using the more moderndatetimefunctionality.