The first six characters can be converted with datenum
directly using the format 'yymmdd'
:
>> d = datenum('140322','yymmdd')
d =
735680
>> datestr(d)
ans =
22-Mar-2014
Do them all with cellfun
:
>> cellfun(@(x)datenum(x(1:6),'yymmdd'),C)
ans =
735680
735682
735683