Fit a damped sine wave

The function fits a damped sinewave to given (sampled) data.
1.1K Downloads
Updated 7 May 2015

View License

The function 'fit_damped_sinewave' fits a sequence
sigr(k)= Ar*exp(alphar*k) * cos(wr*k+phr), k=0..n-1
to a given sequence 'sig' .

The function determines the
Amplitude Ar, damping factor alphar, frequency wr and phase phr.
The function uses linear Algebra to find the parameters.

Cite As

Detlef Amberg (2024). Fit a damped sine wave (https://www.mathworks.com/matlabcentral/fileexchange/50756-fit-a-damped-sine-wave), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Linear and Nonlinear Regression in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.1.0.0

Calculation of amplitude/damping adjusted.

1.0.0.0