calendarDuration.ismissing
calendarDuration: TF = ismissing (calD)
calendarDuration: TF = ismissing (calD, indicator)
Find missing data in a calendarDuration array.
Missing values in calendarDuration arrays are represented by NaN,
thus TF = ismissing (calD) is equivalent to
TF = isnan (calD).
TF = ismissing (calD, indicator) marks instead
the elements of calD equal to the values in indicator, a
calendarDuration scalar or vector; the standard missing values are
ignored, unless explicitly stated in indicator. Elements are
compared as by calendarDuration.eq, component by component. A
NaN in indicator matches the NaN elements of
calD, and so does missing. MATLAB accepts no indicator for
a calendarDuration array, so the indicator argument is an Octave
extension.
Source Code: calendarDuration
For a calendar duration ismissing is the same test as isnan: a NaN span is the missing value, so calendar durations plug into the generic missing-data tools.
d = calmonths ([1, NaN, 3])
d =
1x3 calendarDuration array
1mo NaN 3mo
ismissing (d)
ans = 0 1 0