Navigation

Operators and Keywords

Function List:

C++ API

Function File: y = spfun (f, S)

Compute f(S) for the nonzero values of S.

This results in a sparse matrix with the same structure as S. The function f can be passed as a string, a function handle, or an inline function.

See also: arrayfun, cellfun, structfun.

Package: octave