w = weeknum(t)
| Parameter | Description |
|---|---|
| inputs | datetime values, serial date numbers, or date-compatible input. |
| Parameter | Description |
|---|---|
| output | A double array of week numbers. |
Return week numbers within the calendar year.
weeknum is an alias-style wrapper around week for compatibility with code that uses this function name.
Array-valued inputs keep their data shape when the operation supports arrays. Scalar operands are expanded where the implementation defines scalar expansion.
weeknum(datetime(2024, 1, 8))
| Version | Description |
|---|---|
| 2.0.0 | initial version |