Fit Multiple Gaussians

Fit a specified number of Gaussians to a test signal.
1.4K Downloads
Updated 24 Jul 2021

View License

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 (2024). Fit Multiple Gaussians (https://www.mathworks.com/matlabcentral/fileexchange/74408-fit-multiple-gaussians), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2019b
Compatible with any release
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.0

Replaced msgboxw() with msgbox().

1.0.0