This is my code. Could you please tell me
function m = year2016 for i = 1:31 [MonthNumber, DateName] = weekday(datenum([2016 1:12 i])); m.(i) = struct('month','MonthNumber','date',i,'day', DateName); end
year2016
function m = year2016 for i = 1:31 [MonthNumber, DateName] = weekday(datenum([2016 1:12 i])); m.(i) = struct('month','MonthNumber','date',i,'day', DateName); end
Best Answer