Advertisement
hiddenGem

Rotating Square Coil

Jul 7th, 2020
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.49 KB | None | 0 0
  1. %% Rotating Square Coil
  2. % Determines the maximum EMF induced in the coil by Earth's field
  3.  
  4. % Inputs and Variables
  5. N = input('How many turns?\n');
  6. A = input('Area of the wire coil in meters^2\n');
  7. w = input('RPM of the coil\n')*pi/30;
  8. B = input('The horizontal component of the magnetic field\n');
  9.  
  10. % Outputs and Equations
  11. E = N*B*A*w
  12. fprintf('The maximum EMF is %.4e V\n',E);
  13.  
  14. %{
  15. The code will ask the user to input the rotation speed in RPM. It will save
  16. the variable is saved in rad/s
  17. %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement