You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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 (2026). Voigt_Fitter (https://www.mathworks.com/matlabcentral/fileexchange/175584-voigt_fitter), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0 (14 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0 |
