MATLAB Fraunhofer diffraction simulation in Matlab

Click For Summary
The discussion centers on a script from the book "Introduction to Modern Digital Holography With MATLAB" by Ting-Chung Poon and Jung-Ping Liu, which is available for free download. The focus is on understanding specific MATLAB commands related to scaling coordinates in the context of Fraunhofer diffraction patterns. The commands C=C*lambda*z/M/delta*1000 and R=R*lambda*z/M/delta*1000 are believed to adjust the coordinates in the image plane. The user notes that commenting out these commands alters the x-y coordinates, revealing a range between 1 and 512, which suggests that the scaling is crucial for accurately plotting the data in millimeters. The conversation emphasizes the importance of these scaling factors for proper image representation in simulations.
riharenda009
Messages
3
Reaction score
0
Hello, below is the screenshot from the book INTRODUCTION TO MODERN DIGITAL HOLOGRAPHY With MATLAB (TING-CHUNG POON, JUNG-PING LIU). This book is free to download. There is a script for Fraunhofer diffraction pattern and equation 1.40 is Fraunhofer diffraction formula in terms of Fourier transform.
matlabfd.png

I don't understand commands C=C*lambda*z/M/delta*1000 and R=R*lambda*z/M/delta*1000;. They are probably scaling coordinates in image plane, but I don't know how. Can anybody explain it? Thank you very much. Here are the results of the simulation. Coordinates are in milimeters.
m1.png

m2.png
 

Attachments

  • matlabfd.png
    matlabfd.png
    22.2 KB · Views: 1,109
  • m1.png
    m1.png
    9.1 KB · Views: 1,227
  • m2.png
    m2.png
    14.7 KB · Views: 1,032
Physics news on Phys.org
if you comment out the C and R at the bottom and re plot the data, you'll find that the x-y coordinates vary between 1 and 512, they get the image back into reasonable coordinates for an image plot.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
13K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
6K
  • · Replies 7 ·
Replies
7
Views
16K