MATLAB Function Reference Previous page   Next Page
nonzeros

Nonzero matrix elements

Syntax

Description

s = nonzeros(A) returns a full column vector of the nonzero elements in A, ordered by columns.

This gives the s, but not the i and j, from [i,j,s] = find(A). Generally,

See Also

find, isa, nnz, nzmax, size, whos


Previous page  noanimate norm Next page

© 1994-2005 The MathWorks, Inc.