% Prechodne deje relizovane na transformatoru
% a vedeni

% Chod nakratko
IkmPom=In*sqrt(2)*2

Zk2=Rk1+i*Xs1+1/(1/Rfe+1/(i*Xh)+1/(Rk1+i*Xs1))
Ikm2=(Uk/100)*Um/abs(Zk2)
PsiK2=atan(imag(Zk2)/real(Zk2))

ZpozdeniK=PsiK2/pi*0.01

t=[0:0.001:0.1]';
Ikt2=Ikm2*(sin(PsiK2)*exp(-t/TauK)+sin(Omega*t-PsiK2));
plot(t,Ikt,t,Ikt2);
grid on;
