% Fungsi Ruang Keadaan rangkaian RLC
function xdot=keadaan(t,x)
format long
clc
n=t
R=2.5;
L=0.01;
C=0.0022;
A=[0 1;-1/(L*C) -R/L];
B=[0;1/(L*C)];
u=0;
xdot=A*x+B*u;
