Method Reference: calendarDuration.repmat

calendarDuration: B = repmat (A, n)
calendarDuration: B = repmat (A, d1, …, dN)
calendarDuration: B = repmat (A, dimvec)

Repeat copies of a calendarDuration array.

B = repmat (A, n) returns a calendarDuration array B containing n copies of the input calendarDuration array A along every dimension of A.

B = repmat (A, d1, …, dN) returns an array B containing copies of A along the dimensions specified by the list of scalar integer values d1, …, dN, which specify how many copies of A are made in each dimension.

B = repmat (A, dimvec) is equivalent to the previous syntax with dimvec = [d1, …, dN].

Source Code: calendarDuration