To use the function, simply download it to your working directory, then call the function 'doy' supplying the date vector.
returns 153 as the day number for 2-Jun-2003.
Note that the date vector can be in any format as recognized by MATLAB's DATEVEC. You can also convert a group of dates at once.
Daniel Okoh (2022). Day of year (https://www.mathworks.com/matlabcentral/fileexchange/38162-day-of-year), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!