duration

Methods

Method Reference: duration.isnan

duration: TF = isnan (D)

Return true for duration elements that are Not-A-Number.

TF = isnan (D) returns a logical array TF of the same size as D containing true for each corresponding element of calD that is NaN and false otherwise.

Source Code: duration

Example: 1

isnan flags the elements whose value is Not-a-Number.

 d = hours ([1, NaN, 3])
d =
  1x3 duration array

    1 hr    NaN hr    3 hr
 isnan (d)
ans =

  0  1  0