fitting decaying oscillations

From inputs t, y the best fit to the decaying oscillation is determined.
ダウンロード: 428
更新 2012/2/9

ライセンスの表示

[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

引用

Stephan Koehler (2024). fitting decaying oscillations (https://www.mathworks.com/matlabcentral/fileexchange/34971-fitting-decaying-oscillations), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R12
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersLinear and Nonlinear Regression についてさらに検索
タグ タグを追加

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.4.0.0

another bug fix

1.3.0.0

speed improvement, and fixed calculation of Jacobian

1.2.0.0

used the Jacobian matrix to speed calculations.

1.1.0.0

bug fix

1.0.0.0