1
$\begingroup$

I have sampled digital signal with noise. I want to get main frequency of this signal how to do it? Currently it is smoothed by moving average. Is good way to make Fourier Transform an take the highest peak? Or the first peak?

Thanks.

$\endgroup$
2
$\begingroup$

Generally, yes, you should perform FFT and take the highest peak from the first half of the transformed signal. However, if the frequency your are looking for is constant (or close to constant), i.e. doesn't change (much) throughout the observation time, I would recommend using Welch's method instead of a simple FFT.
If the accuracy is not good enough you can perform interpolation around the peak, or on the entire signal using zero-padding.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.