[s, n] =
funred, funelem, dim)
Reduce array using callback fundtions.
Reduce array using the function FUNRED applied to all elements after the function FUNELEM was applied along dimension DIM.
Package: ncarray