Day of year
版本 1.0.0.0 (1.0 KB) 作者:
Daniel Okoh
A function that computes the day number (or day of year) for any given date, Enhanced.
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!
引用格式
Daniel Okoh (2024). Day of year (https://www.mathworks.com/matlabcentral/fileexchange/38162-day-of-year), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2010a
兼容任何版本
平台兼容性
Windows macOS Linux类别
在 Help Center 和 MATLAB Answers 中查找有关 Dates and Time 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |