% Prechodne deje relizovane na transformatoru
% a vedeni

% Chod naprazdno
I0mPom=In*I0/100*sqrt(2)*2

Z02=Rk1+i*Xs1+1/(1/Rfe+1/(i*Xh))
I0m2=Um/abs(Z02)
Psi02=atan(imag(Z02)/real(Z02))

Zpozdeni0=Psi02/pi*0.01

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