RLC simulation in Matlab We consider the capacitor voltage to be zero at the zero time. From the equation of the current in an inductance, the voltage in a capacitor and solving KVL(kirchhoff’s voltage law) in the loop we will have the following equation. (KVL = Voltage in the capacitor + voltage in the inductance + Voltage in the Resistor = zero)