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

  1. %MAX    Largest component.
  2. %    For vectors, MAX(X) is the largest element in X. For
  3. %     matrices, MAX(X) is a vector containing the maximum element
  4. %     from each column. [Y,I] = MAX(X) stores the indices of the 
  5. %     maximum values in vector I. MAX(X,Y) returns a matrix the
  6. %     same size as X and Y with the largest elements taken from X
  7. %     or Y. When complex, the magnitude MAX(ABS(X)) is used.
  8. %
  9. %    See also MIN, MEDIAN, MEAN, SORT.
  10.  
  11. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  12. %    Built-in function.
  13.