diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-05-20 08:54:33 -0400 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2014-05-20 08:54:33 -0400 |
commit | b1f89b5ba72e2b9091f177eab84fae976cfe336b (patch) | |
tree | 9729638d32ae3500281af4700fe490add49fe85d /demo_diffraction_on_a_disk.m | |
parent | 2b8fb75d3d3637f4a0019096728a97797120a49a (diff) | |
download | beam_reshape-b1f89b5ba72e2b9091f177eab84fae976cfe336b.tar.gz beam_reshape-b1f89b5ba72e2b9091f177eab84fae976cfe336b.zip |
added saving to filename with time stamp
Diffstat (limited to 'demo_diffraction_on_a_disk.m')
-rw-r--r-- | demo_diffraction_on_a_disk.m | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/demo_diffraction_on_a_disk.m b/demo_diffraction_on_a_disk.m index 3eb511c..13f1ebe 100644 --- a/demo_diffraction_on_a_disk.m +++ b/demo_diffraction_on_a_disk.m @@ -58,7 +58,10 @@ tic; % start timer img_t=diffracted_image_at_target(img_source, xpos_s, ypos_s, img_t, xpos_t, ypos_t, z_t, lambda); toc % show evaluation time -imwrite(img_t/max(img_t(:)),'diffracted_image.png') +dstr = datestr(now,'yyyymmdd-HH:MM:SS'); +fname = strcat('diffracted_image', '_', dstr, '.png'); +img_t_intensiry = abs(img_t/max(img_t(:))).^2; +imwrite(img_t_intensiry, fname); % plot source and target images show_diffraction(img_source, xpos_s, ypos_s, img_t, xpos_t, ypos_t); |