Fit a damped sine wave

The function fits a damped sinewave to given (sampled) data.

You are now following this Submission

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 (2026). Fit a damped sine wave (https://www.mathworks.com/matlabcentral/fileexchange/50756-fit-a-damped-sine-wave), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

Calculation of amplitude/damping adjusted.

1.0.0.0