summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2014-05-20 12:07:16 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2014-05-20 12:07:16 -0400
commit5d1694d2de92dd2f0941f3c1b071566943ec5b67 (patch)
tree80812fb8b96e98e0e09c51628c9d966474bb1df7
parentb1f89b5ba72e2b9091f177eab84fae976cfe336b (diff)
downloadbeam_reshape-5d1694d2de92dd2f0941f3c1b071566943ec5b67.tar.gz
beam_reshape-5d1694d2de92dd2f0941f3c1b071566943ec5b67.zip
proper index selection
-rw-r--r--demo_diffraction_on_a_disk.m2
1 files changed, 1 insertions, 1 deletions
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),:) ) )