Here I am trying to solve the circuit and from my calculation, I got, I(t)=3e^(-2t) - 3e^(-3t) and Vc(t)=12-18e^(-2t)+12e^(-3t)
When Initial conditions are;
I(0-)=0A and Vc(0-)=6V
From my assumption, current will flow through the circuit until the voltage across the capacitor is 12V so V(∞)=12V and I(∞)=0A. but when I simulate the circuit in MATLAB, I got something different...
1st graph is for current and second graph is for voltage across capacitor. Here both current and voltage are zero in steady state. How is it possible that steady state voltage across capacitor is zero? Also the current graph is inverse of what I theoretically calculated. Where am I wrong? Please help me out.