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

  1. function s = nonzeros(S);
  2. %NONZEROS Nonzero elements.
  3. %    NONZEROS(S) is a full column vector of the nonzeros in S.
  4. %    This gives the s, but not the i and j, from [i,j,s] = find(S).
  5. %
  6. %    See also NNZ, FIND.
  7.  
  8. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  9.  
  10. s = sparsfun('nzvals',S);
  11.