Al momento, stai seguendo questo contributo
- Vedrai gli aggiornamenti nel tuo feed del contenuto seguito
- Potresti ricevere delle email a seconda delle tue preferenze per le comunicazioni
[A, T1, T2, phase, offset, Ssq] = fit_decay_oscillations( t, y, options )
fitting decaying oscillations of the form
y(t) = A exp( -t/T1 ) cos( t / T2 + phi) + offset
where A is the amplitude, T1 is the decay time, T2 is the period, along with
phase and offest. 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_decay_oscillations( t, y, 'notify', 'plot')
[A, T1, T2, phase, offset] = fit_decay_oscillations( t, y, [1 2 3 4 5])
Note: this script uses LMFnlsq from MATLAB central file exchange
sak@wpi.edu 2/5/12
Cita come
Stephan Koehler (2026). fitting decaying oscillations (https://it.mathworks.com/matlabcentral/fileexchange/34971-fitting-decaying-oscillations), MATLAB Central File Exchange. Recuperato .
Informazioni generali
- Versione 1.4.0.0 (2,31 KB)
Compatibilità della release di MATLAB
- Compatibile con qualsiasi release
Compatibilità della piattaforma
- Windows
- macOS
- Linux
