FUNCTION REFERENCE
calweeks
Create calendar weeks or extract whole calendar weeks.
Create calendar weeks or extract whole calendar weeks.
Syntax
cd = calweeks(n)Syntax
n = calweeks(cd)Each calendar week is seven calendar days. Extraction truncates the day component toward zero after division by seven; months and years are excluded.
Example
datetime(2024,1,1) + calweeks(2)Differences from MATLAB: Bounded two-dimensional arrays; constructor input must contain integers.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.