calendarDuration.isnan
calendarDuration: TF = isnan (calD)
Return true for calendar durations that are Not-A-Number.
TF = isnan (calD) returns a logical array TF
of the same size as calD containing true for each
corresponding element of calD that is NaN and false
otherwise.
Source Code: calendarDuration
isnan flags the elements built from a NaN component — a Not-a-Number span.
d = calmonths ([1, NaN, 3])
d =
1x3 calendarDuration array
1mo NaN 3mo
isnan (d)
ans = 0 1 0