Integer order 1D Gaussian function
Version 1.0.0.0 (1.24 KB) by
Adam Wyatt
Performs a Gaussian function of any positive order.
Computes the Gaussian function in 1D:
exp(-log(2)*(2*(x-x0)./FWHM).^(2*floor(abs(order))));
Where:
x = Co-ordinate
x0 = Centre of function
FWHM = Full Width Half Max of the function
order = Gaussian order
Normal Gaussian is of order 1.
Note that FWHM = (1/e Half Width)/sqrt(2*log(2))
log is the natural log.
Cite As
Adam Wyatt (2024). Integer order 1D Gaussian function (https://www.mathworks.com/matlabcentral/fileexchange/15635-integer-order-1d-gaussian-function), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2007a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on General Applications in Help Center and MATLAB Answers
Tags
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.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |