goertzel (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

»查看产品信息 下载帮助（仅限Windows）

Owning Class: transforms

Requires: MathScript RT Module

Syntax

c = goertzel(a)

c = goertzel(a, b)

c = goertzel(a, b, d)

c = goertzel(a, [], d)

Description

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.

Examples

Inputs

Name Description
a Specifies a vector or matrix.
b Specifies a list of frequency bins. If b is not specified, a complete DFT is provided.
d Specifies the dimension of a in which LabVIEW performs the Goertzel transform. d is an integer.
[] Tells LabVIEW that you want to specify a and d but not b.

Outputs

Name Description
c Returns the 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.

Details

The following table lists the support characteristics of this function.

 Supported in the LabVIEW Run-Time Engine Yes Supported on RT targets Yes Suitable for bounded execution times on RT Not characterized

Examples

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

﻿