image thumbnail

Fit 2D gaussian function to data

version (3.56 KB) by Gero Nootz
Fits a 2D Gaussian function to simulated data.


Updated 12 Jun 2012

View License

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 (2022). Fit 2D gaussian function to data (, MATLAB Central File Exchange. Retrieved .

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

Inspired: gaussfitn, Fit 1D and 2D gaussian to noisy data

Community Treasure Hunt

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

Start Hunting!