duration.lt
duration: TF = lt (A, B)
Equality for duration arrays.
TF = lt (A, B) is the equivalent of the syntax
TF = A < B and returns a logical array whose
elements set to true where the corresponding elements of A
are less than B and set to false otherwise.
A and B must be size compatible, which translates to they can be the same size, one can be scalar, or for every dimension, their dimension sizes must be equal or one of them must be 1. The size of C is determined by the size compatibility of A and B.
One of the input arguments can also be a character vector, a cell array of character vectors, or a string array representing duration strings or a numeric array representing days.
Source Code: duration
lt (<) compares durations by length. <, <=, > and >= all work, since durations have a natural order.
d = minutes ([30, 60, 90])
d =
1x3 duration array
30 min 60 min 90 min
d < hours (1)
ans = 1 0 0