Fit Multiple Gaussians
Version 1.1.0 (5.02 KB) by
Image Analyst
Fit a specified number of Gaussians to a test signal.
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 LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.