diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-05-16 16:09:53 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-05-16 16:09:53 -0400 |
commit | 5ae2b91ddda5583c8a24a28eb136ee08585a7125 (patch) | |
tree | 7a2eaeed3f2d246e0cc2c3feaa8a94c2f96be914 /mask_transparency.m | |
parent | 24b48105c1c4ed1dcd3a0de68df91d7003b2789c (diff) | |
download | beam_reshape-5ae2b91ddda5583c8a24a28eb136ee08585a7125.tar.gz beam_reshape-5ae2b91ddda5583c8a24a28eb136ee08585a7125.zip |
addition of exact diffraction calculation
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
|