Fit a damped sine wave
Version 1.1.0.0 (3,54 KB) von
Detlef Amberg
The function fits a damped sinewave to given (sampled) data.
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.
Zitieren als
Detlef Amberg (2024). Fit a damped sine wave (https://www.mathworks.com/matlabcentral/fileexchange/50756-fit-a-damped-sine-wave), MATLAB Central File Exchange. Abgerufen .
Kompatibilität der MATLAB-Version
Erstellt mit
R2007b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS LinuxKategorien
Mehr zu Linear and Nonlinear Regression finden Sie in Help Center und MATLAB Answers
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.1.0.0 | Calculation of amplitude/damping adjusted. |
||
1.0.0.0 |