MATLAB Function Reference
  Go to function:
    Search    Help Desk 
nonzeros    See Also

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        Find indices and values of nonzero elements

nnz         Number of nonzero matrix elements

nzmax       Amount of storage allocated for nonzero matrix elements

size        Array dimensions

whos        List directory of variables in memory

isa         Detect an object of a given class



[ Previous | Help Desk | Next ]