Levenberg–Marquardt algorithm - Gaussian amplitude function

Version 1.0.2 (2.47 KB) by Karol Vegso
I post here Levenberg–Marquardt algorithm to fit the Gaussian function with amplitude.
56 Downloads
Updated 4 Feb 2022

View License

The Gaussian functions are widely used in optical spectroscopy like Raman spectroscopy, X-ray diffraction and optics in general. Therefore, it is necessary to know non-linear least square fitting algorithms. Here, I post Levenberg–Marquardt algorithm to fit Gaussian function with amplitude. The Gaussian function is fully decribed by amplitude, center, width and offset. The FWHM of Gaussian function is given as 2.35482*width. The Levenberg–Marquardt algorithm was taken from document "METHODS FOR NON-LINEAR LEAST SQUARES PROBLEMS" written by K. Madsen, H.B. Nielsen, O. Tingleff (Technical University of Denmark). This pdf document can be found on the web-page <http://www2.imm.dtu.dk/pubdb/edoc/imm3215.pdf>. You can also use the Eigen C++ library for linear algebra to rewrite Matlab code for C++ if necessary. Enjoy the algorithm.

Cite As

Karol Vegso (2024). Levenberg–Marquardt algorithm - Gaussian amplitude function (https://www.mathworks.com/matlabcentral/fileexchange/106180-levenberg-marquardt-algorithm-gaussian-amplitude-function), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2021b
Compatible with R2018a to R2021b
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.2

Improved clearance of program description with notes.

1.0.1

The description of algorithm by notes was rapidly improved.

1.0.0