diff options
Diffstat (limited to 'diffracted_image_at_target.m')
-rw-r--r-- | diffracted_image_at_target.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/diffracted_image_at_target.m b/diffracted_image_at_target.m index afc92fd..f53ac12 100644 --- a/diffracted_image_at_target.m +++ b/diffracted_image_at_target.m @@ -7,7 +7,7 @@ yim_t=linspace(ypos_t(1), ypos_t(end), Ny); img_target=zeros(Ny, Nx); -for i=1: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; |