Integer order radial-2D Gaussian function.

Generates a 'radial' Gaussian function in 2D of any positive integer order.
2.5K Downloads
Updated 20 Jul 2007

View License

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 Linux
Categories
Find more on Random Number Generation in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0