Table Of Contents

decimate

Version:
    Last Modified: March 15, 2017

    Uses a type 1 Chebyshev filter to resample a signal.

    Syntax

    c = decimate(a, b)
    c = decimate(a, b, n)
    c = decimate(a, b, option)
    c = decimate(a, b, n, option)

    Inputs

    a

    Original signal. a is a real vector.

    b

    New sampling rate. b is a positive integer.

    n

    Order of the type 1 Chebyshev filter to use. n is a positive integer.

    option

    Filter type. option is a string that accepts the following values:

    Name Description
    'FIR'

    Directs MathScript to use an FIR filter to perform the resampling.

    'IIR'

    Directs MathScript to use an IIR filter to perform the resampling.

    Outputs

    c

    Resampled version of a at 1/b times the original rate. The length of c is 1/b times the length of a. c is a real vector.

    A = [1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7];
    B = 2;
    N = 3;
    C = decimate(A, B, N)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics