##### 22.6.2.31 spfind

— Loadable Function: spfind (x)
— Loadable Function: spfind (x, n)
— Loadable Function: spfind (x, n, direction)
— Loadable Function: [i, j, v spfind (...)

> A sparse version of the `find` function. Please see the `find` for details of its use.

> Note that this function is particularly useful for sparse matrices, as it extracts the non-zero elements as vectors, which can then be used to create the original matrix. For example,

>               sz = size(a);
>               [i, j, v] = spfind (a);
>               b = sparse(i, j, v, sz(1), sz(2));

> See also: sparse.