Next: median, Previous: mean, Up: Internal Routines [Contents][Index]

`medfilter(`

`x` [[, `axes`], `width`])

Applies a median filter to dimensions

of
`axes`

, over `x`

elements. `width`

may
be a scalar or an array. If `axes`

is not specified, then
the filter spans all dimensions of `axes`

. If
`x`

is even then one is subtracted from it.
`width`

defaults to `width``3`

. The filter is applied only to
those elements of

for which all elements to be considered
by the filter exist. For elements that are too close to the edge, the
original value is retained.
`x`