Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% 'e' Shaped Conductor
- % Determines the induced EMF in the loop and the current at a specific time
- % Inputs and Variables
- B = input('What is the magnetic field? \n');
- r = input('What is the length of the rod?\n');
- w = input('What is the angular speed in rad/s \n');
- rhoI = input('What is the resistance per unit length ?\n');
- t = input('What is the time in seconds?\n');
- % Outputs and Equations
- E = B*r*r*w/2;
- theta = w*t;
- larc = r*theta;
- R = rhoI*(2*r+larc);
- I = E/R;
- fprintf('The EMF in the loop is %.4e V and the current is %.4e A', E, I)
- %{
- The user is given the resistance in Ohm/m
- %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement