[Master Index] [Index for /tools/hpmatlab/toolbox/matlab/datafun]

sort

(/tools/hpmatlab/toolbox/matlab/datafun/sort.m)


Help text

SORT	Sort in ascending order.
	SORT(X) sorts each column of X in ascending order. 
 	When X is complex, the elements are sorted by ABS(X).
 	[Y,I] = SORT(X) also returns an index matrix I.
	If X is a vector, then Y = X(I).
	If X is an m-by-n matrix, then
	    for j = 1:n, Y(:,j) = X(I(:,j),j).

	See also MIN, MAX.

Cross-Reference Information

This is called by

Produced by mat2html on Wed Feb 8 12:25:18 EST 1995
Cross-Directory links are: ON