Day of year

A function that computes the day number (or day of year) for any given date, Enhanced.
476 download
Aggiornato 13 set 2012

Visualizza la licenza

To use the function, simply download it to your working directory, then call the function 'doy' supplying the date vector.

Example:
doy('02-Jun-2003')

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.

Enjoy!

Cita come

Daniel Okoh (2024). Day of year (https://www.mathworks.com/matlabcentral/fileexchange/38162-day-of-year), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2010a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Dates and Time in Help Center e MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Versione Pubblicato Note della release
1.0.0.0