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

  1. %SUM    Sum of the elements.
  2. %    For vectors, SUM(X) is the sum of the elements of X.
  3. %     For matrices, SUM(X) is a row vector with the sum over
  4. %     each column. SUM(DIAG(X)) is the trace of X.
  5. %
  6. %    See also PROD, CUMPROD, CUMSUM.
  7.  
  8. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  9. %    Built-in function.
  10.