Peak fitting to either Voigt or LogNormal line shapes.

Version 1.1.0.0 (86.9 KB) by Maxim
Peak fitting to Voigt or LogNormal line shapes.
1.5K Downloads
Updated 2 Feb 2016

View License

Uses Matlab's lsqcurvefit to fit x and y data from a .txt file or from the workspace to resolve different line shapes (currently Voigt or reversed LogNormal). There are several types of backgrounds (constant, sloped, Shirley), automatic peak finding, automatic initial guess generation, and optional interactive adjustment during fitting.
The main function is DC.m.
Documentation is in the DC.m file, and an example is available on DCexample.m.
Useful for deconvolution of spectra (such as Raman and XPS).

Cite As

Maxim (2024). Peak fitting to either Voigt or LogNormal line shapes. (https://www.mathworks.com/matlabcentral/fileexchange/52321-peak-fitting-to-either-voigt-or-lognormal-line-shapes), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: pickpeaks(V,select,display)

Communities

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.1.0.0

1.1 - Updated changer function, and added background useful for XPS.
1.1 - Improved the changer function and added a background usefull for XPS (Shirley).

1.0.0.0