fitting critically damped simple harmonic oscillator

Four-parameter fit to the equation A*(1 + t/T2).*exp(-t/T1) + offset
ダウンロード: 429
更新 2012/2/9

ライセンスの表示

[A, T1, T2, offset, Ssq] = fit_critical_damping( t, y, options )
fitting critically damped oscillations to the equation
y(t) = A (1 + t/T2) exp( -t/T1 ) + offset
where A is the amplitude, T1 is a time constant, T2 is the decay time, along with
the offest. Ssq is the sum of residuals (i.e. fitting error).

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 ) = 4 (i.e. there are four columns);

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

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

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

引用

Stephan Koehler (2024). fitting critically damped simple harmonic oscillator (https://www.mathworks.com/matlabcentral/fileexchange/35015-fitting-critically-damped-simple-harmonic-oscillator), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R13
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersPolynomials についてさらに検索

Community Treasure Hunt

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

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