Dataset sortcols: Difference between revisions
Jump to navigation
Jump to search
imported>Jeremy (New page: ===Purpose=== Sort columns of a DataSet. ===Synopsis=== : [B,index] = sortcols(A,col) ===Description=== Analog of the standard SORTROWS command. Input (col) allows specification of which...) |
imported>Jeremy No edit summary |
||
Line 3: | Line 3: | ||
===Synopsis=== | ===Synopsis=== | ||
: [B,index] = sortcols( | :[B,index] = sortcols(x); | ||
:[B,index] = sortcols(x,col); | |||
===Description=== | ===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. | 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=== | ===See Also=== | ||
[[dataset_sortby]], [[dataset_sortrows]] | [[dataset_sortby]], [[dataset_sortrows]] |
Latest revision as of 10:59, 13 October 2008
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.