hiddenGem

Diameter of a Wire

Jul 28th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.36 KB | None | 0 0
  1. %% Diameter of a Wire
  2. % The title says it all. Green lines on a white plot graph
  3.  
  4. % Inputs and Variables
  5. lambda = input('Wavelength\n');
  6. d = input('Distance from screen\n');
  7.     % These come from graph
  8. m = input('Order\n');
  9. x = input('At x = \n');
  10.  
  11. % Outputs and Equations
  12. a = m*lambda*d/x;
  13. %{
  14. For the graph values go when theres a gap. I hate this one
  15. %}
Add Comment
Please, Sign In to add comment