Dataset sortcols

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search

Purpose

Sort columns of a DataSet.

Synopsis

[B,index] = sortcols(x);
[B,index] = sortcols(x,col);

Description

Analog of the standard SORTROWS command. Input (col) allows specification of which columns should be used to sort. A negative value indicates that the given column should be sorted in decreasing order. The entire DataSet object is sorted, including the labels, classes, axisscales, etc.

See Also

dataset_sortby, dataset_sortrows