[parmin,resnom,res,exitflag]= fit2voigt(dat,par0)
此代码执行以下操作:如果您提供两列光谱数据(第一列为波数,第二列为吸光度),以及初始峰值参数par0,它将为您提供优化的voigt线型参数parmin以及拟合质量信息。
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.
本代码使用了Sanjar Abrarov的Voigt/complex误差函数。您需要下载该代码,并将其放在本代码的文件夹中。
It uses the the Voigt/complex error function of Sanjar Abrarov. You need to download the code, and put under the same folder as these files.
测试数据也包括在内。您可以通过运行voigtfit_test文件进行测试。
Also included is the test data. you can test by running the voigtfit_test m.file。
如果您发现任何错误或有任何建议,发邮件到作者信箱:mruzi17@gmail.com。
参考文献:
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
完整资料领取请加QQ群免费下载: