Fraunhofer diffraction simulation in Matlab

In summary, the discussion revolved around a book called "INTRODUCTION TO MODERN DIGITAL HOLOGRAPHY With MATLAB" that is available for free download. The conversation also mentioned a script for Fraunhofer diffraction pattern and equation 1.40 as the Fraunhofer diffraction formula using Fourier transform. The speaker expressed confusion regarding the commands C=C*lambda*z/M/delta*1000 and R=R*lambda*z/M/delta*1000; and requested for an explanation. The simulation results were also shared, with coordinates measured in millimeters. It was suggested to comment out the C and R commands for a better image plot with coordinates varying between 1 and 512.
  • #1
riharenda009
3
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: 984
  • m1.png
    m1.png
    9.1 KB · Views: 1,110
  • m2.png
    m2.png
    14.7 KB · Views: 935
Physics news on Phys.org
  • #2
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.
 

1. What is Fraunhofer diffraction and why is it important?

Fraunhofer diffraction is a phenomenon that occurs when a wave, such as light or sound, passes through an aperture or around an object and produces a diffraction pattern. It is important because it allows us to understand how waves behave and interact with different objects, which has applications in fields such as optics and acoustics.

2. How is Fraunhofer diffraction simulated in Matlab?

Fraunhofer diffraction can be simulated in Matlab by using the built-in functions for Fourier transforms and plotting. The diffraction pattern can be calculated by performing a Fourier transform on the aperture or object, and then using the inverse Fourier transform to obtain the diffraction pattern.

3. Can I simulate diffraction from complex shapes or objects in Matlab?

Yes, Matlab has the capability to simulate diffraction from complex shapes or objects by using numerical methods to calculate the Fourier transform. This allows for more accurate simulations of diffraction from real-life objects.

4. Is it necessary to have a deep understanding of optics or acoustics to simulate Fraunhofer diffraction in Matlab?

While a basic understanding of optics or acoustics is helpful, it is not necessary to have a deep understanding to simulate Fraunhofer diffraction in Matlab. The built-in functions and numerical methods make it accessible for those with a basic understanding of Matlab.

5. What are some potential applications of Fraunhofer diffraction simulation in Matlab?

Fraunhofer diffraction simulation in Matlab has various applications in fields such as optics, acoustics, and signal processing. It can be used to design and optimize optical or acoustic devices, analyze diffraction patterns in experiments, and simulate the effects of different geometries on diffraction patterns.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
7
Views
12K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
Replies
3
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
7
Views
15K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
5K
Back
Top