Fit 2D gaussian function to data

Fits a 2D Gaussian function to simulated data.

You are now following this Submission

The program generates a 2D Gaussian. The program then attempts to fit the data using the MatLab function “lsqcurvefit “ to find the position, orientation and width of the two-dimensional Gaussian.
Execute “mainD2GaussFitRot.m” with not input parameters.
The two-dimensional Gaussian function is defined by the function “D2GaussFunctionRot.m” and “D2GaussFunction.m”

Cite As

Gero Nootz (2026). Fit 2D gaussian function to data (https://www.mathworks.com/matlabcentral/fileexchange/37087-fit-2d-gaussian-function-to-data), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.5.0.0

file was renamed and the definition of the gaussian width was changed.
Also a screenshot was added.

1.0.0.0