fitting critically damped simple harmonic oscillator

버전 1.0.0.0 (2.25 KB) 작성자: Stephan Koehler
Four-parameter fit to the equation A*(1 + t/T2).*exp(-t/T1) + offset
다운로드 수: 431
업데이트 날짜: 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 CenterMATLAB Answers에서 Polynomials에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0