Fit Multiple Gaussians

Fit a specified number of Gaussians to a test signal.

You are now following this Submission

This function takes a 1-D, slightly noisy test signal and fits 6 Gaussians to it with the fminsearch() function. The parameters (amplitude, peak location, and width) for each Gaussian are determined. The 6 Gaussians should sum together to give the best estimate of the original test signal. You can specify whatever number of Gaussians you like. Only basic MATLAB is required (no toolboxes).

Cite As

Image Analyst (2026). Fit Multiple Gaussians (https://uk.mathworks.com/matlabcentral/fileexchange/74408-fit-multiple-gaussians), 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.1.0

Replaced msgboxw() with msgbox().

1.0.0