peakfit

This code fits spectra to sum of Lorentzian and Gaussian line shapes.
955 Downloads
Updated 27 Jul 2019

View License

This code fits spectra to modified classical damped harmonic oscillator model where the asymmetry parameter a controls whether it's Lorentzian (a=0) or Gaussian (a=0.3) or mixture (0<a<0.3). The spectrum is a two column matrix where first column is wave number and second column is absorbance. The initial values of spectral parameters should be provided in the same folder. For n peaks, the par file is 4 by n matrix where the rows are peak positions, intensity, width, and asymmetry parameter, respectively. The main code is 'peakfit', on run it will fit IR spectra of formic acid ice. For specific problems, the spectra and the initial peak parameters needs to be changed.

Cite As

Mahmut Ruzi (2024). peakfit (https://www.mathworks.com/matlabcentral/fileexchange/54761-peakfit), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!

peakfit/peakfit

Version Published Release Notes
3.0.0.1

minor updates

3.0.0.0

some missing files are included.

2.0.0.0

condition is included to stop the iteration if the fit does not improve much comparing previous once.

1.0.0.0