Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

I Fraunhofer diffraction simulation in Matlab

  1. Feb 14, 2018 #1
    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
     
  2. jcsd
  3. Feb 14, 2018 #2

    Dr Transport

    User Avatar
    Science Advisor
    Gold Member

    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.
     
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Have something to add?