HW6soln - aa(ii)=sum(aperture(1:ii nd ambda=6.33e-5 =100...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
unction data=diffraction2(aperture) aperture is an array of lengths, in the format [transparent1 opaque1 transparent2 opaque2 transparent3. ...] example input: aperture=1e-3; %single-slit, width 10 microns aperture=[1e-3 2e-3 1e-3]; %double slit, each 10 microns, with 20 microns opaque %between them (30 micron spacing) aperture=[1e-3 2e-3 1e-3 2e-3 1e-3]);% three-slit diffraction or ii=1:length(aperture)
Background image of page 4
Background image of page 5
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: aa(ii)=sum(aperture(1:ii)); nd ambda=6.33e-5; =100; =2*pi/lambda; s=-20:0.1:20; i=1; or x=xs E=0; for y=0:lambda/2:sum(aperture) if ceil(min(find(sign(y-aa)-1))/2)~=min(find(sign(y-aa)-1))/2 d=sqrt(D^2+(x-y)^2); E=E+e^(i*k*d); end I(ii)=abs(E)^2; ii=ii+1; lot(xs,I) ata=[xs' I']; diffraction2([1e-3 1e-3 1e-3]) diffraction2([1e-3 1e-3 1e-3 1e-3 1e-3])...
View Full Document

This note was uploaded on 12/29/2011 for the course PHYSICS 375 taught by Professor Eno during the Spring '11 term at Maryland.

Page1 / 5

HW6soln - aa(ii)=sum(aperture(1:ii nd ambda=6.33e-5 =100...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online