voigt line shape fit
Notice:
This code is provided as it is, there might be errors,may not work sometimes, so use it with your discretion. If encounter any problem, please first read the description below, and then the two references.
[parmin,resnom,res,exitflag]= fit2voigt(dat,par0)
This code do the following: if you supply a two column spectral data ( first column is wavenumber, second column is absorbance) dat, and initial peak parameters par0, it gives you optimised voigt line shape parameters parmin, and the fit and fitting quality information.
It uses the the Voigt/complex error function (File ID: #47801) of Sanjar Abrarov. You need to download the code, and put under the same folder as these files.
Analytical jacobians is included.
Also included is the test data. you can test by running the voigtfit_test m.file
References:
R.J. Wells, Rapid approximation to the Voigt/Faddeeva function and its derivatives, JQSRT 62(1999), 29-48
S. M. Abrarov and B. M. Quine, Appl. Math. Comput., 218 (2011) 1894-1902
인용 양식
Mahmut Ruzi (2026). voigt line shape fit (https://kr.mathworks.com/matlabcentral/fileexchange/57603-voigt-line-shape-fit), MATLAB Central File Exchange. 검색 날짜: .
MATLAB 릴리스 호환 정보
플랫폼 호환성
Windows macOS Linux태그
도움
도움 받은 파일: peakfinder(x0, sel, thresh, extrema, includeEndpoints, interpolate), The Voigt/complex error function (second version), A rational approximation of the Voigt function
| 버전 | 게시됨 | 릴리스 정보 | |
|---|---|---|---|
| 1.7.0.3 | notice changed |
||
| 1.7.0.2 | minute changes |
||
| 1.7.0.1 | minor updates |
||
| 1.7.0.0 | Analytical Jacobians are included |
||
| 1.6.0.0 | corrected an error from early versions. |
||
| 1.5.0.0 | line width parameter restricted be smaller than 100; |
||
| 1.4.0.0 | a missing m.file is added |
||
| 1.3.0.0 | a m.file is added, which is missing from previous version |
||
| 1.2.0.0 | a vectorised voigt m file is included. |
||
| 1.1.0.0 | figure |
||
| 1.0.0.0 |
