Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% Inductance in an RL Circuit
- % Determines the inductance in an RL Circuit
- % Inputs and Variables
- V = input('What is the voltage in the battery?\n');
- Tau = input('What is the time constant?\n');
- I = input('What is the maximum current?\n');
- % Outputs and Equations
- R = V*(1-exp(-t/Tau))/I;
- L = R*Tau;
- fprintf('The value of inductance is %.4e H', L)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement