Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% Rail Road Axle
- % Calculates the induced current in the resistor, the horizontal force, and
- % the potential differnce between point a and point b
- % Inputs and Variables
- l = input('What is the length of the axle?\n');
- v = input('What is the speed in m/s?\n');
- R = input('What is the resistance?\n');
- B = input('What is hte uniform magneitc field?\n');
- % Outputs and Equations
- E = v*l*B;
- i = E/R;
- Fm = v*l^2*B^2/R;
- V = i*R;
- fprintf('The current, horizontal force, and potential difference is :\n %e A, %e N, and %e V',i, Fm, V)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement