duration.repelems
duration: B = repelems (A, R)
Construct a vector of repeated duration array.
B = repelems (A, R) returns a duration vector
B containing repeated elements of the input A, which must be
a duration vector. R must be a matrix of integers.
Entries in the first row of R correspond to the linear indexing of
the elements in A to be repeated. The corresponding entries in the
second row of R specify the repeat count of each element.
Source Code: duration