Next: , Previous: spfind, Up: Function Reference


22.6.0.30 spfun

— Function File: y = spfun (f,x)

Compute f(x) for the non-zero values of x. This results in a sparse matrix with the same structure as x. The function f can be passed as a string, a function handle or an inline function.