From 5d1694d2de92dd2f0941f3c1b071566943ec5b67 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Tue, 20 May 2014 12:07:16 -0400 Subject: proper index selection --- demo_diffraction_on_a_disk.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'demo_diffraction_on_a_disk.m') diff --git a/demo_diffraction_on_a_disk.m b/demo_diffraction_on_a_disk.m index 13f1ebe..7f5ecc4 100644 --- a/demo_diffraction_on_a_disk.m +++ b/demo_diffraction_on_a_disk.m @@ -67,4 +67,4 @@ imwrite(img_t_intensiry, fname); show_diffraction(img_source, xpos_s, ypos_s, img_t, xpos_t, ypos_t); % radial slice of the target image -figure(3); plot( xpos_t, abs( img_t(Ny_t/2,:) ) ) +figure(3); plot( xpos_t, abs( img_t( ceil(Ny_t/2),:) ) ) -- cgit v1.2.3