How can I fit data with only one sine wave?

3 views (last 30 days)
Luka
Luka on 24 Mar 2014
Commented: Luka on 25 Mar 2014
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

Answers (1)

Walter Roberson
Walter Roberson on 24 Mar 2014
fft() and extract the bin with the highest magnitude, perhaps ?
  1 Comment
Luka
Luka on 25 Mar 2014
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?

Sign in to comment.

Categories

Find more on Statistics and Machine Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!