Table Of Contents

filter_median

Version:
    Last Modified: March 15, 2017

    Applies a one-dimensional median filter of order n.

    Syntax

    y = filter_median(x)
    y = filter_median(x, n)
    y = filter_median (x, n, [], d)
    Legacy name: medfilt1

    Inputs

    x

    Input signal.

    n

    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.

    d

    Dimension.

    []

    Empty array.

    Outputs

    y

    Filtered signal.

    A = magic(6);
    B = filter_median(A, 3)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics