summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2014-05-19 10:36:56 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2014-05-19 10:36:56 -0400
commit2f4092a06c4e43218480f4d519b79454c5e64e40 (patch)
treedf21f789d77e81b6bd9c0359a4b663f1b7c6427f
parent6cbe9f11da4bf38e78beac3fe10ded1e72d5406c (diff)
downloadbeam_reshape-2f4092a06c4e43218480f4d519b79454c5e64e40.tar.gz
beam_reshape-2f4092a06c4e43218480f4d519b79454c5e64e40.zip
for -> parfor
-rw-r--r--diffracted_image_at_target.m2
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;