Table Of Contents

fir_sgsmooth

Version:
    Last Modified: March 15, 2017

    Computes the coefficients of a Savitzky-Golay FIR smoothing filter.

    Syntax

    b = fir_sgsmooth(p, f, w)
    b = fir_sgsmooth(p, f)
    [b, d] = fir_sgsmooth(p, f, w)
    [b, d] = fir_sgsmooth(p, f)
    Legacy name: sgolay

    Inputs

    p

    Order of the polynomial. p must be a positive integer.

    f

    Number of points to use in fitting. f must be a positive odd integer.

    w

    Weighting vector. w can be an empty vector or an real vector with length f.

    Outputs

    b

    Coefficients of the filter.

    d

    Differentiation filters. The i-th column of d is a differentiation filter for derivatives of order i-1.

    p = 2;
    f = 15;
    b = fir_sgsmooth(p, f)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics