How to detect the frequency of a signal?
If x is an point segment of , one way to determine its frequency content is to take its discrete Fourier transform (DFT) by using the fast Fourier transform (FFT) to compute it: >> X=fft(x); This gives us an component vector , which in general will be complex valued.
How does the Goertzel algorithm work?
Like the DFT, the Goertzel algorithm analyses one selectable frequency component from a discrete signal. Unlike direct DFT calculations, the Goertzel algorithm applies a single real-valued coefficient at each iteration, using real-valued arithmetic for real-valued input sequences.