Applies a one-dimensional median filter of order n.
y = filter_median(x)
y = filter_median(x, n)
y = filter_median (x, n, , d)Legacy name: medfilt1
Order of the filter. If n is odd, y(k) is the median of x(k-(n-1)/2 : k+(n-1)/2). Otherwise, y(k) is the median of x(k-n/2 : k+n/2-1). For the edge points, MathScript assumes zeros to the left and right of x. The default is 3.
A = magic(6); B = filter_median(A, 3)
Where This Node Can Run:
Desktop OS: Windows
FPGA: This product does not support FPGA devices