FUNCTION REFERENCE
calmonths
Create calendar months or extract calendar months.
Create calendar months or extract calendar months.
Syntax
cd = calmonths(n)Syntax
n = calmonths(cd)Integer numeric input creates calendar durations. Calendar duration input extracts total whole months from the year and month components. Days and elapsed time are excluded.
Example
datetime(2023,1,31) + calmonths(1)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.