Table Of Contents

goertzel

Version:
    Last Modified: March 15, 2017

    Computes the Goertzel transform. goertzel returns the discrete Fourier transform for a specified list of frequency bins. goertzel computes the discrete Fourier transform without using the FFT. If the list of specified frequency bins in b is large, the algorithm performs much slower than the FFT.

    Syntax

    c = goertzel(a)
    c = goertzel(a, b)
    c = goertzel(a, b, d)
    c = goertzel(a, [], d)

    Inputs

    a

    Vector or matrix.

    b

    List of frequency bins. If b is not specified, a complete DFT is provided.

    d

    Dimension of a in which MathScript performs the Goertzel transform. d is an integer.

    []

    Tells MathScript that you want to specify a and d but not b.

    Outputs

    c

    Goertzel transform of a. If a is a vector, c = goertzel(a) returns the original discrete Fourier transform (DFT). If a is a matrix, c = goertzel(a) returns the column-wise discrete Fourier transforms of all columns of a but only for all specified frequency bins. c is a vector or matrix.

    A = [1, 2, 3, 4, 4, 3, 2, 1];
    C = goertzel(A, 3)

    Where This Node Can Run:

    Desktop OS: Windows

    FPGA: This product does not support FPGA devices


    Recently Viewed Topics