diff options
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 |