The conventional Goertzel Algorithm can be used to compute individual DFT coefficients. In case we need to compute some values of DTFT (that means, non-integer multiples of the fundamental frequency), slight modification must be done.
There are two files: the conventional and generalized Goertzel algorithm. No toolboxes needed.
The algorithm and its derivation is described in the article accesible at
Pavel Rajmic (2022). Generalized Goertzel algorithm (https://www.mathworks.com/matlabcentral/fileexchange/35103-generalized-goertzel-algorithm), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!