diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-05-19 17:14:53 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-05-19 17:14:53 -0400 |
commit | 240d1de52762c64e5dc6c981780b2320bfd191e4 (patch) | |
tree | 246540d25a05feb8e28bc3753fd32c93cc52796c /diffracted_image_at_target.m | |
parent | 2f4092a06c4e43218480f4d519b79454c5e64e40 (diff) | |
download | beam_reshape-240d1de52762c64e5dc6c981780b2320bfd191e4.tar.gz beam_reshape-240d1de52762c64e5dc6c981780b2320bfd191e4.zip |
added field calculation for diffracted image
Diffstat (limited to 'diffracted_image_at_target.m')
-rw-r--r-- | diffracted_image_at_target.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/diffracted_image_at_target.m b/diffracted_image_at_target.m index f53ac12..90de657 100644 --- a/diffracted_image_at_target.m +++ b/diffracted_image_at_target.m @@ -9,8 +9,8 @@ img_target=zeros(Ny, Nx); parfor i=1:Nx for k=1:Ny - intensity = beam_intensity_at_point_from_image(xim_t(i), yim_t(k), z_t, img_source, xpos_s, ypos_s, lambda); - img_target(k,i) = intensity; + field = beam_field_at_point_from_image(xim_t(i), yim_t(k), z_t, img_source, xpos_s, ypos_s, lambda); + img_target(k,i) = field; end end |