MATLAB: Sine curve for a given period value.

fitperiodsine curve

I want to fit a sine curce to my data for a given period value. How should I do it?

Best Answer

See for example: Curve fitting to a sinusoidal function (link), and How to filter noise from time-frequency data and find natural frequency of a cantilever? (link). You can easily adapt the code in those to your data if you need to.