1D median filtering
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.
int | double
positive integer scalar
positive integer scalar
'includenan' (default) | 'omitnan'
Filtering such that the median of any segment
Filtering with NaNs omitted in each segment. If a segment
int | double