Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% Slit Spacing
- % Determines the distance between two slits and the distance between the
- % central and mth bright fringe after the screen is moved
- % Inputs and Variables
- m = input('What order\n');
- lambda = input('Wavelength\n');
- x = input('x = \n');
- y = input('y = \n');
- move = input('Distance screen moved\n');
- % Outputs and Equations
- d = m*lambda*x/y;
- xprime = x+move;
- yprime = m*lambda*xprime/d;
- fprintf('The distance between the slits: %.3e m\nThe new y distance: %.3e m',d,yprime)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement