Advertisement
hiddenGem

'e' Shaped Conductor

Jul 7th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.60 KB | None | 0 0
  1. %% 'e' Shaped Conductor
  2. % Determines the induced EMF in the loop and the current at a specific time
  3.  
  4. % Inputs and Variables
  5. B = input('What is the magnetic field? \n');
  6. r = input('What is the length of the rod?\n');
  7. w = input('What is the angular speed in rad/s \n');
  8. rhoI = input('What is the resistance per unit length ?\n');
  9. t = input('What is the time in seconds?\n');
  10.  
  11. % Outputs and Equations
  12. E = B*r*r*w/2;
  13. theta = w*t;
  14. larc = r*theta;
  15. R = rhoI*(2*r+larc);
  16. I = E/R;
  17. fprintf('The EMF in the loop is %.4e V and the current is %.4e A', E, I)
  18. %{
  19. The user is given the resistance in Ohm/m
  20. %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement