summaryrefslogtreecommitdiff
path: root/demo_diffraction_on_a_disk.m
diff options
context:
space:
mode:
Diffstat (limited to 'demo_diffraction_on_a_disk.m')
-rw-r--r--demo_diffraction_on_a_disk.m17
1 files changed, 9 insertions, 8 deletions
diff --git a/demo_diffraction_on_a_disk.m b/demo_diffraction_on_a_disk.m
index 7f5ecc4..5cb2424 100644
--- a/demo_diffraction_on_a_disk.m
+++ b/demo_diffraction_on_a_disk.m
@@ -42,14 +42,15 @@ ypos_t=linspace( -tgt_size_y, tgt_size_y, Ny_t);
%ypos_t=linspace( 0, 0, Ny_t);
%% full image which mimics camera
-Nx_t=101; % use Nx_t = 680 to mimic camera
-Ny_t=int32(Nx_t*(480/640));
-img_t=zeros(Ny_t,Nx_t);
-tgt_size_x = (640*7e-6)/2; % each pixel is 7 um
-tgt_size_y = (480*7e-6)/2;
-xpos_t=linspace( -tgt_size_x, tgt_size_x, Nx_t);
-ypos_t=linspace( -tgt_size_y, tgt_size_y, Ny_t);
-
+%Nx_t=640; % use Nx_t = 680 to mimic camera
+%Ny_t=int32(Nx_t*(480/640));
+%img_t=zeros(Ny_t,Nx_t);
+%tgt_size_x = (640*7e-6)/2; % each pixel is 7 um
+%tgt_size_y = (480*7e-6)/2;
+%xpos_t=linspace( -tgt_size_x, tgt_size_x, Nx_t);
+%ypos_t=linspace( -tgt_size_y, tgt_size_y, Ny_t);
+
+%% propagation distance
z_t=.50;