Function Reference
— 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.