Peak fitting to either Voigt or LogNormal line shapes.

Version (86.9 KB) by Maxim
Peak fitting to Voigt or LogNormal line shapes.


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 (2023). 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

Inspired by: pickpeaks(V,select,display)


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 - Updated changer function, and added background useful for XPS.
1.1 - Improved the changer function and added a background usefull for XPS (Shirley).