ddd2mmdd is a MATLAB function that converts the day of year to corresponding month and day of the month.
to convert day ddd of year yyyy to corresponding month mm and day of month dd of the same year.
Daniel Okoh (2021). Day of year to Month, Day of Month (ddd2mmdd.m) (https://www.mathworks.com/matlabcentral/fileexchange/46699-day-of-year-to-month-day-of-month-ddd2mmdd-m), MATLAB Central File Exchange. Retrieved .
A function without a documentation is not useful. A help section is obligatory.
A simpler version, which does not need the Financial Toolbox:
function [mm,dd] = ddd2mmdd(year, ddd)
v = datevec(datenum(year, 1, ddd));
mm = v(2); dd = v(3);
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!