home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / DATAFUN.DI$ / SORT.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  406 b   |  13 lines

  1. %SORT    Sort in ascending order.
  2. %    SORT(X) sorts each column of X in ascending order. 
  3. %     When X is complex, the elements are sorted by ABS(X).
  4. %     [Y,I] = SORT(X) also returns an index matrix I.
  5. %    If X is a vector, then Y = X(I).
  6. %    If X is an m-by-n matrix, then
  7. %        for j = 1:n, Y(:,j) = X(I(:,j),j).
  8. %
  9. %    See also MIN, MAX.
  10.  
  11. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  12. %    Built-in function.
  13.