medfilt11D median filteringCalling SequenceDescription
y = medfilt1(x)
Applies a 3rd order 1-dimensional median filter to input x along the
first non-zero dimension. The function appropriately pads the signal
with zeros at the endings. For a segment, a median is calculated as
the middle value (average of two middle values) for odd number
number (even number) of data points.
y = medfilt1(x,n)
Applies a nth order 1-dimensional median filter.
y = medfilt1(x,n,dim)
Applies the median filter along the n-th dimension
y = medfilt1(__, nanflag, padding)
nanflag specifies how NaN values are treated. padding specifies the
type of filtering to be performed at the signal edges.
Parametersx: int | doublen: positive integer scalardim: positive integer scalarnanflag: 'includenan' (default) | 'omitnan'* includenan: Filtering such that the median of any segment* omitnan: Filtering with NaNs omitted in each segment. If a segmenty: int | doubleExamplesSee also| hampel | median | sgolayfiltAuthorsAyush Baid