categorical

Methods

Method Reference: categorical.reshape

categorical: B = reshape (A, d1, …, dN)
categorical: B = reshape (A, …, [], …)
categorical: B = reshape (A, dimvec)

Repeat copies of categorical array elements.

B = reshape (A, d1, …, dN) returns a categorical array B with specified dimensions d1, …, dN, whose elements are taken columnwise from the categorical array A. The product of d1, …, dN must equal the total number of elements in A.

B = reshape (A, …, [], …) returns a categorical array B with one dimension unspecified which is calculated automatically so that the product of dimensions in B matches the total elements in A, which must be divisible the product of specified dimensions. An empty matrix ([]) is used to flag the unspecified dimension.

Source Code: categorical