diff options
Diffstat (limited to 'mask_transparency.m')
-rw-r--r-- | mask_transparency.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mask_transparency.m b/mask_transparency.m new file mode 100644 index 0000000..0a858bd --- /dev/null +++ b/mask_transparency.m @@ -0,0 +1,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
|