Dataset unique

From Eigenvector Research Documentation Wiki
Revision as of 15:49, 8 October 2008 by imported>Jeremy (Importing text file)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Purpose

Returns a DataSet object containing all the unique values from the input.

Synopsis

D = unique(x); D = unique(x,'rows');

Description

Overload of the standard unique command. This method operates exactly as described for standard matrices (see standard unique documentation) except that the output is a DataSet object. Note that if the 'rows' input is supplied, labels, classes, etc. are retained on all modes. Otherwise, they are cleared.

See Also

dataset/sortrows