FUNCTION REFERENCE
findgroups
Group numbers of the unique values or value combinations.
Group numbers of the unique values or value combinations.
Syntax
[G, ID1, ..., IDn] = findgroups(A1, ..., An)Syntax
[G, TID] = findgroups(T)Groups are numbered in sorted order of their values (numbers ascending, text in code-point order). Rows with a missing value get NaN. Inputs: numeric, logical, cellstr, string, char matrix rows, datetime, duration, table variables.
Example
[G, ID] = findgroups({'b';'a';'b'}) % G = [2;1;2], ID = {'a';'b'}Differences from MATLAB: None known.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.