UniqueCell

>Psychtoolbox>PsychOneliners

UniqueCell Get unique rows from cell array

Description: like unique(x,’rows’), but supports cell arrays, and these
cell arrays can have columns with different types

Usage: [Y,IA,IC] = UniqueCell(X)

Input:
X: the cell array to be processed.

Output:
Y: contains the same values as in A but with no repetitions. Y will
be sorted.
IA: index vector IA such that C = A(IA,:).
IC: index vector IC such that A = C(IC,:).

Note that this function has only been tested on mixed cell arrays
containing character strings and numeric values.

Path   Retrieve current version from GitHub | View changelog
Psychtoolbox/PsychOneliners/UniqueCell.m