summaryrefslogtreecommitdiff
path: root/mask_transparency.m
blob: 0a858bd56d08c8761f3c52dbf7353e050dd0c814 (plain)
1
2
3
4
5
6
7
function mask = mask_transparency( xmesh, ymesh, mask_R )
% mask_R is the radius of the aperture

% solid disk mask
mask = 1.0*((xmesh.^2+ymesh.^2) > mask_R^2);

end