How can I fit data with only one sine wave?

3 次查看(过去 30 天)
Hello!
I have measurements of gear tooth error from 0° to 360°. Error data contain eccentricity of measured gear and errors of tooth shape (similar as signal and noise).
Eccentricity is a single sine wave regression of measured data. I want to subtract eccentricity from total error (get only "noise"), but I can not get only one fitted sine wave of the data. The "sin1" and "fourier1" regressions return one or more sine waves, depends on measured data.
Thank you in advance!
Luka

回答(1 个)

Walter Roberson
Walter Roberson 2014-3-24
fft() and extract the bin with the highest magnitude, perhaps ?
  1 个评论
Luka
Luka 2014-3-25
Thank you for fast response!
I do not know the background of FFT so well. Should I use fft() to get periodogram and then see which frequency components my data contain? What do you mean by extracting the bin? And how can I determine the magnitude to get exactly one sine wave?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by