Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% Rotating Square Coil
- % Determines the maximum EMF induced in the coil by Earth's field
- % Inputs and Variables
- N = input('How many turns?\n');
- A = input('Area of the wire coil in meters^2\n');
- w = input('RPM of the coil\n')*pi/30;
- B = input('The horizontal component of the magnetic field\n');
- % Outputs and Equations
- E = N*B*A*w
- fprintf('The maximum EMF is %.4e V\n',E);
- %{
- The code will ask the user to input the rotation speed in RPM. It will save
- the variable is saved in rad/s
- %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement