Skip to content

countEachLabel

datafun · scripts/datafun/countEachLabel.m

COUNTEACHLABEL  Count occurrences of each category label (MATLAB compat).

  T = COUNTEACHLABEL (A) returns a table with variables Label and Count,
  giving the number of elements of categorical array A in each category.