duration

Methods

Method Reference: duration.isinf

duration: TF = isinf (D)

Return true for duration elements that are infinite.

TF = isinf (D) returns a logical array TF of the same size as D containing true for each corresponding element of calD that is either Inf or -Inf and false otherwise.

Source Code: duration

Example: 1

isinf flags infinite durations (from an infinite input value).

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

    1 hr    Inf hr    3 hr
 isinf (d)
ans =

  0  1  0