Peak fitting to either Voigt or LogNormal line shapes.
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
Platform Compatibility
Windows macOS LinuxCategories
- Signal Processing > Signal Processing Toolbox > Measurements and Feature Extraction > Descriptive Statistics >
Tags
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!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.