categorical

Methods

Method Reference: categorical.size

categorical: sz = size (C)
categorical: dim_sz = size (C, dim)
categorical: dim_sz = size (C, d1, d2, …)
categorical: [rows, columns, …, dim_n_sz] = size (…)

Size of a categorical array.

sz = size (C) returns a row vector with the size (number of elements) of each dimension for the categorical array C.

dim_sz = size (C, dim) returns the size of the corresponding dimension specified in dim. If dim is a vector, then dim_sz is a vector of the same length and with each element corresponding to a specified dimension. Multiple dimensions may also be specified as separate arguments.

With a single output argument, size returns a row vector. When called with multiple output arguments, size returns the size of dimension N in the Nth argument.

Source Code: categorical