From 2f4092a06c4e43218480f4d519b79454c5e64e40 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Mon, 19 May 2014 10:36:56 -0400 Subject: for -> parfor --- diffracted_image_at_target.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3