datetime

Methods

Method Reference: datetime.repelem

datetime: B = repelem (A, n)
datetime: B = repelem (A, d1, …, dN)

Repeat copies of datetime array elements.

B = repelem (A, n) returns a datetime vector B containing repeated elements of the input A, which must be a datetime 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: datetime