summaryrefslogtreecommitdiff
path: root/mask_transparency.m
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2014-05-16 16:09:53 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2014-05-16 16:09:53 -0400
commit5ae2b91ddda5583c8a24a28eb136ee08585a7125 (patch)
tree7a2eaeed3f2d246e0cc2c3feaa8a94c2f96be914 /mask_transparency.m
parent24b48105c1c4ed1dcd3a0de68df91d7003b2789c (diff)
downloadbeam_reshape-5ae2b91ddda5583c8a24a28eb136ee08585a7125.tar.gz
beam_reshape-5ae2b91ddda5583c8a24a28eb136ee08585a7125.zip
addition of exact diffraction calculation
Diffstat (limited to 'mask_transparency.m')
-rw-r--r--mask_transparency.m7
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