% Prechodne deje relizovane na transformatoru
% a vedeni

% Chod naprazdno
Z0=sqrt(Rk1^2+Xh^2)
I0m=Um/Z0
Tau0=Lh/Rk1
Psi0=atan(Xh/Rk1)

t=[0:0.001:0.1]';
I0t=I0m*(sin(Psi0)*exp(-t/Tau0)+sin(Omega*t-Psi0));
plot(t,I0t);
grid on;
