Function creates an area normalized supergaussian for user input coordinates and center point, size at max/e (width), and supergaussian P value.
Another function shows how to fit noisy data to a supergaussian. First, estimate area, width, and center point. Then find minimum values for a sweep of possible supergaussian integers. The solution is the best of the best fit.
The fitting demo, uses the imnoise function of the image toolbox. This can be commented out to use just regular random noise..
Meg Noah (2021). Area Normalized 1D Supergaussian and Fitting Noisy Data (https://www.mathworks.com/matlabcentral/fileexchange/88461-area-normalized-1d-supergaussian-and-fitting-noisy-data), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!