FIND  FIND Find Non-zero Elements of An Array


Usage
 
 Returns a vector that contains the indicies of all non-zero elements 
 in an array.  The usage is
 
    y = find(x)
 
 The indices returned are generalized column indices, meaning that if 
 the array x is of size [d1,d2,...,dn], and the
 element x(i1,i2,...,in) is nonzero, then y
 will contain the integer
 The second syntax for the find command is
 
    [r,c] = find(x)
 
 which returns the row and column index of the nonzero entries of x.
 The third syntax for the find command also returns the values
 
    [r,c,v] = find(x).
 
 This form is particularly useful for converting sparse matrices
 into IJV form.
 