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.
引用格式
Kristupas Tikuišis (2025). fitgaussbeam (https://www.mathworks.com/matlabcentral/fileexchange/113230-fitgaussbeam), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2022a
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!