categorical

Methods

Method Reference: categorical.repmat

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

Repeat copies of a categorical array.

B = repmat (A, n) returns a categorical array B containing n copies of the input categorical 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: categorical