cross correlation vs sliding FFT

Hi,
I have a signal with many frequencies appearing at different times. I need to know when a certain frequency appears at this signal. The most obvious thing to do is to have a sliding window FFT and see when the frequency appears. However, what is the difference, or will I see any improvement, if I create a synthetic signal with a desired frequency, and cross correlate this synthetic signal to the original signal? The maximum of the cross-correlation should give me when the desired frequency appears. If there are other frequencies and noise in the signal, it would be difficult to find the frequency in the FFT spectrum, but in the cross correlation it should still be at the maximum position, right?
I feel I am missing some relation between the cross correlation and the FFT that should tell me the possible accuracy I can get. I hope my question is understandable, thanks for any replies.

1 Comment

Hi Mortizo! Did you solve the problem of sliding FFT? O have the same problem, could you please help me?

Sign in to comment.

Answers (0)

Categories

Find more on Fourier Analysis and Filtering in Help Center and File Exchange

Asked:

on 11 Mar 2016

Commented:

on 13 Dec 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!