You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
w = weeknum(daynums)
WEEKNUM returns vector W containing the week numbers corresponding to the dates in input vector DAYNUMS of serial date numbers.
Week 1 is the first 4-day week of the year
NB! Using Monday as first day of the week.
Quick and dirty code. No error checking. Use with caution.
Cite As
Hallvard (2026). weeknum (https://www.mathworks.com/matlabcentral/fileexchange/22663-weeknum), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.0 (816 Bytes)
-
No License
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 |
