fitting sum of two decaying exponentials (over damped oscillator)

five-parameter fit to the equation A*exp(-t/T1) + B*exp( -t/T2 ) + offset
374 téléchargements
Mise à jour 9 fév. 2012

Afficher la licence

[A, B, T1, T2, offset, Ssq] = fit_overdamping( t, y, options )
fitting overdamped harmonic oscillator of the form
y(t) = A exp( -t/T1 ) + B exp( -t/T2) + offset
where A and B are the amplitudes (assumed positive), and T1, T2 are the
decay times. Ssq is the sum of residuals.

options are 'notify' to show progress and 'plot' to give a plot
you can also supply a guess or series of guesses via a row vector or
matrix, m, where size( m, 2 ) = 5;

if you just run program without arguments it will do an example

examples are
fit_overdamping( t, y, 'notify', 'plot')
[A, B, T1, T2, offset] = fit_overdamping( t, y, [1 2 3 4 5])

Note: this script uses LMFnlsq from MATLAB central file exchange
sak@wpi.edu 2/8/12

Citation pour cette source

Stephan Koehler (2024). fitting sum of two decaying exponentials (over damped oscillator) (https://www.mathworks.com/matlabcentral/fileexchange/35016-fitting-sum-of-two-decaying-exponentials-over-damped-oscillator), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R13
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Least Squares dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.0.0.0