Dataset unique: Difference between revisions
Jump to navigation
Jump to search
imported>Jeremy (Importing text file) |
imported>Jeremy No edit summary |
||
Line 2: | Line 2: | ||
Returns a DataSet object containing all the unique values from the input. | Returns a DataSet object containing all the unique values from the input. | ||
===Synopsis=== | ===Synopsis=== | ||
D = unique(x); | :D = unique(x); | ||
D = unique(x,'rows'); | :D = unique(x,'rows'); | ||
===Description=== | ===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. | 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=== | ===See Also=== | ||
[[ | [[dataset_sortrows]] |
Latest revision as of 16:23, 8 October 2008
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.