image thumbnail

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.3K Downloads

Updated 02 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 (2021). 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!