Advertisement
hiddenGem

Flexible Wire Loop

Jul 7th, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.37 KB | None | 0 0
  1. %% Flexible Wire Loop
  2. % Determines the magnitude of the average induced electromotive force
  3. %    during the stretching process
  4.  
  5. % Inputs and Variables
  6. r = input('What is the radius of the loop?\n');
  7. B = input('What is the magnetic field ?\n');
  8. t = input('Time it takes to stretch the loop\n');
  9.  
  10. % Outputs and Equations
  11. E = B*pi*r^2/t;
  12. fprintf('The average EMF is %.4V', E)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement