UniqueAndN

>Psychtoolbox>PsychProbability

[uniques,n] = UniqueAndN(input,[operateByRow=false])

returns the unique elements in input (sorted) and
the number of times the item ocurred
optionally does so for unique rows (operateByRow=true)
instead of unique elements

DN 2008
DN 2017 Added byRow option

Path   Retrieve current version from GitHub | View changelog
Psychtoolbox/PsychProbability/UniqueAndN.m