Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %% Inductor in RLC Circuit to Reduce Current
- % Determines the current and inductor of the circuit
- % Inputs and Variables
- R = input('What is the resistance?\n');
- C = input('What is the capacitance?\n');
- f = input('What is the frequency?\n');
- Vrms = input('What is the voltage of the source?\n');
- % Outputs and Equations
- w = f*2*pi;
- Xc = 1/(w*C);
- Irms = Vrms/sqrt(R^2+Xc^2);
- xl = sqrt(3*R^2+4*Xc^2)+Xc;
- L = xl/w;
- fprintf('The current and value of the inductance are:\n %.3e and %.3e\n', Irms, L)
- %{
- Under the assmuption that the value of the inductor is meant to be inserted
- in the circuit to reduce the current ot one half
- %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement