- #1
bcjochim07
- 374
- 0
Homework Statement
In lab, I obtained a single slit diffraction pattern and recorded an image of it. The slit width is known to be 0.000134 m. We are supposed to compare our experimentally-obtained diffraction pattern to the result of taking a Discrete Fourier Transform of the aperture in MATLAB.
Homework Equations
The Attempt at a Solution
Here is my MATLAB code:
E=[-100000:25:100000];
F=zeros(1,8001);
for n=1:8001;
F(n)=0.000134*(sin(pi*0.000134*E(n)))/(pi*0.000134*E(n));
end;
plot(E,abs(F))
Here, E corresponds to spatial frequency (m^-1). I'm plotting the power spectrum as a function of E. Qualitatively, the MATLAB result looks very similar to the experimental result, as one would expect. But can I compare the width of the central maxima? At first, I thought that maybe taking the reciprocal of the width of the central max. of the MATLAB result would yield the same width as I saw experimentally. But then again, I'm not taking into account the wavelength of the light in the code. How could I modify my code to give an accurate comparison?