Voigt_Fitter
Version 1.0.0 (14 KB) by
Roberto Pilot
This program employs Voigt functions to fit spectral peaks.
This program employs Voigt functions to fit spectral peaks. The resulting fit parameters, curves, and quality metrics (R-squared, adjusted R-squared, and reduced Chi-squared) are exported in text files and stored in cell arrays. Additionally, two figures are generated: a plot showing the experimental data along with the Voigt curves calculated using the initial parameter estimates and a plot showing the experimental data along with the final fitting curves.
1. Features
- The main program is named Voigt_Fitter.
- All function names begin with the prefix "F_".
- To run the program, you have to provide the following input parameters at lines 137-154:
Name of the file containing the spectrum to be imported
The lower and upper limits of the x-range in which the fitting will be calculated
Initial guesses for Gaussian and Lorentzian Widths, and Peak Center(s)
The program automatically estimates the peak areas.
- The following files are generated:
filename_Fit_Curves.txt: Contains the experimental data and the fitted curves.
filename_Fit_Par.txt: Contains the fitted parameters and their standard errors.
filename_Fit_Qua.txt: Contains the fitting quality parameters.
- The following figures are generated:
Figure 1: Shows the exp. data and Voigt curves based on the initialized param.
Figure 2: Showss the exp. data and Voigt curves resulting from the fitting.
2. Other details
Cite As
Roberto Pilot (2025). Voigt_Fitter (https://www.mathworks.com/matlabcentral/fileexchange/175584-voigt_fitter), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2024b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
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.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |