I want to ask how can I plot the voltage across any component by Matlab?
I have a simple RLC circuit and I want to plot the voltage across the 3 components and I didn't use Matlab before. I found the transfer function here in the site but still can't plot the voltage.
And the voltage source I will use is cosine source but I can't find it in the simulink also.
So this is what I made:
>> L = 0.047; >> R = 220; >> C = 0.000001; >> Num = 1 ; >> Denum = [L*C R*C 1 ]; >> G = tf(Num , Denum)