indices = find(X) returns the linear indices corresponding to the nonzero entries of the array X . If none are found, find returns an empty, 0-by-1 matrix.
k = find(X) returns the indices of the array X that point to nonzero elements. If none is found, find returns an empty matrix. [i,j] = find(X) returns the row ...
k = find( X ) returns a vector containing the linear indices of each nonzero element in array X . ... k = find( X , n ) returns the first n indices corresponding ...