gaussfitn

Version 1.1.3 (109 KB) by Matt J
Fit N-dimensional scattered points with Gaussian+constant
620 Downloads
Updated 14 Jan 2025

View License

This FEX submission provides gaussfitn, a wrapper function that uses lsqcurvefit to fit the N-dimensional Gaussian (plus constant) model function,
Here A and D are unknown scalars, μ is an unknown Nx1 mean vector, and Σ is an unknown NxN covariance matrix. By imposing lower and upper bounds 0<=D<=0, this can also be used to perform pure Gaussian fitting. The submission also provides a helpful tool, namely gaussFcn, for post-plotting and assessing the fit.
See help documentation for gaussfitn() and gaussFcn() as well as the accompanying Examples.mlx for demonstrations of usage.

Cite As

Matt J (2025). gaussfitn (https://www.mathworks.com/matlabcentral/fileexchange/69116-gaussfitn), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2018a
Compatible with R2016b and later releases
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.1.3

*Added gaussFcn() to the package, for obtaining the fit as an anonymous function
*Added an Examples.mlx file
*Iterative display for the optimization will now be suppressed by default.

1.1.2

Typo correction

1.1.1

Small fix to the improved mu0/sig0 estimation method

1.1.0

Improved initial guesses of mu0 and sig0.

1.0.2

No change

1.0.1

Description modification

1.0.0