Unit 2 - Matlab RC y RL
Unit 2 - Matlab RC y RL
Robotics 7C
20/02/2024
1. Components:
2. Behavior:
- When a voltage is applied to an RL circuit, the current increases gradually instead of
instantly reaching its maximum value due to inductance.
Similarities:
Il = (Vs/R)*(1-exp(-t/Tau)); %Corriente del
capacitor - Both circuits exhibit transient
Vl = Vs*exp(-t/Tau); %Voltaje del capacitor behavior when a power source is
figure; applied or removed.
yyaxis left;
plot(t,Il, 'g--'); - Both can be used in filters and
ylabel('current');
title('Voltage and current in Inductor'); timing applications.
hold on;
%El codigo escrito arriba y abajo está para
poder Differences:
%sobreponer nuestras tablas.
yyaxis right; - RC circuits involve energy storage
plot(t,Vl,'k--');
ylabel('Voltage'); in an electric field (the capacitor),
xlabel('Time(s)');
hold on
while RL circuits involve energy
legend('Current','Voltage'); storage in a magnetic field (the
inductor).
- Time constants and transient effects differ in each type of circuit due to the electrical
and magnetic properties of their respective components.
Conclusion
1. Energy Storage: RL circuits store energy in the form of a magnetic field within the
inductor.
1. Energy Storage: RC circuits store energy in the form of an electric field within the
capacitor.
4. Smooth Discharge: Unlike RL circuits, RC circuits do not produce voltage spikes upon
circuit interruption; instead, they discharge gradually through the resistor.