duration.repelem
duration: B = repelem (A, n)
duration: B = repelem (A, d1, …, dN)
Repeat copies of duration array elements.
B = repelem (A, n) returns a duration vector
B containing repeated elements of the input A, which must be
a duration vector. If n is a scalar, each element of A is
repeated n times along the non-singleton dimension of A. If
n is a vector, it must have the same elements as A, in which
case it specifies the number of times to repeat each corresponding
element of A.
B = repelem (A, d1, …, dN) returns
an array B with each element of A repeated according to the
the list of input arguments d1, …, dN each
corresponding to a different dimension 1:ndims (A) of the
input array A. d1, …, dN must be either scalars
or vectors with the same length as the corresponding dimension of
A containing non-negative integer values specifying the number of
repetitions of each element along the corresponding dimension.
Source Code: duration