DMObjNew =
sortcols(DMObj1) sorts the columns in
DMObj1 in the ascending order based on the elements in the first row.
For any columns that have equal elements in a row, sorting is based on the row immediately
below.
DMObjNew =
sortcols(DMObj1,Row) sorts the columns in
DMObj1 in the ascending order based on the elements in the specified
Row. Any columns that have equal elements in the specified row are
sorted based on the elements in the next specified row.
[DMObjNew, Indices]
= sortcols(___) also returns Indices, an index
vector that links DMObj1 to DMObjNew for any of
the previous syntaxes. In other words, DMObjNew =
DMObj1(:,idx).
Load the MAT-file, provided with the software, that contains yeast data. This MAT-file includes three variables: yeastvalues, a 614-by-7 matrix of gene expression data, genes, a cell array of 614 GenBank® accession numbers for labeling the rows in yeastvalues, and times, a 1-by-7 vector of time values for labeling the columns in yeastvalues.
load filteredyeastdata
Create variables to contain a subset of the data, specifically the first five rows and first four columns of the yeastvalues matrix, the genes cell array, and the times vector.
Row information, specified as a positive integer, vector of positive integers,
character vector, string scalar, string vector or cell array of character vectors
specifying row names, or logical vector.
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.