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).
Maxim (2022). 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 CompatibilityWindows 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!