Get index for group variables.
For variable s, returns the indices g, into the variable groups gn and gl. The first has a string representation of the groups while the later has its actual values.
NaNs and empty strings in s appear as NaN in g and are not present on either gn and gl.
See also: cellstr, num2str, unique.
Package: statistics