image thumbnail

Fit a damped sine wave

version (3.54 KB) by Detlef Amberg
The function fits a damped sinewave to given (sampled) data.


Updated 07 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 (2021). 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

Community Treasure Hunt

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

Start Hunting!