fitgaussbeam

Intelligent 1D/2D Gaussian beam fitting
28 Downloads
Updated Tue, 14 Jun 2022 12:17:24 +0000

View License

Fits 1D or 2D equidistantly spaced data to the 0th order Gaussian beam and returns the HWHM (half-width half-maximum) estimation in pixels.
Even though the fitting is performed by Matlab's own 'fit' function, the secret to a reasonable fit is a proper input of initial parameters. This is where the 'smart' part happens. It provides a reasonable estimation of the amplitude, noise floor, beam center coordinates and width based on the statistical distribution of data, not by merely taking maximum or minimum points etc. This makes the fitting faster and less ambiguous, especially in noisy data.

Cite As

Kristupas Tikuišis (2024). fitgaussbeam (https://www.mathworks.com/matlabcentral/fileexchange/113230-fitgaussbeam), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022a
Compatible with any release
Platform Compatibility
Windows macOS Linux

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.1

I simply added proper tagging for this function, no code change this time.

1.0.0