Integer order radial-2D Gaussian function.
Version 1.0.0.0 (1.43 KB) by
Adam Wyatt
Generates a 'radial' Gaussian function in 2D of any positive integer order.
Calculates a rotated 2D gaussian (cylindrical)
y = gauss2D_R(X, Y, FWHM_x, FWHM_y, theta, order);
X = Matrix of x indices
Y = Matrix of y indices
FWHM_x = FWHM in x dimension
FWHM_y = FWHM in y dimension
theta = Rotation angle in degress (+ve = anticlockwise)
order = Gaussian order
Set:
X = ones(Ny, 1) * ((0:Nx-1)*dx - x0)
Y = ((0:Ny-1)*dy - y0) * ones(1, Nx);
Cite As
Adam Wyatt (2024). Integer order radial-2D Gaussian function. (https://www.mathworks.com/matlabcentral/fileexchange/15636-integer-order-radial-2d-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 Random Number Generation 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 |