In medical imaging we quite often require the use of asymmetrically shaped Hamming window functions, e.g. to apodize a Fourier space.
This insultingly simple little script returns an (n1 x n2 x n3) hamming window scaled such that its maximum is one.
No toolboxes are required.
Jack (2023). hamming_3d(n1,n2,n3) (https://www.mathworks.com/matlabcentral/fileexchange/66756-hamming_3d-n1-n2-n3), 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!