You are on page 1of 2

syms ZL Zo Zi_L L Gamma_Mayuscula Gamma f Er

Vo_mas=1;
f=100e6;
Er=3;
L=10;
z=-L:0.001:0;
Zo=50;
ZL=80;
%z=-L;
Gamma_Mayuscula=(ZL-Zo)/(ZL+Zo);
Vo_menos = Gamma_Mayuscula*Vo_mas;
C=3e8;
Vp=C/sqrt(Er);
W=2*pi*f;
Beta= W/Vp;
Gamma=1i*Beta;
Zi_L=Zo*(1+Gamma_Mayuscula*exp(-2*L*Gamma))/(1-Gamma_Mayuscula*exp(-2*L*Gamma))
%Zi_L=Zo*(ZL+Zo*tanh(Gamma*L))/(Zo+ZL*tanh(Gamma*L));
Landa_o=C/f;
LandaL=Landa_o/sqrt(Er);
Zi_L_LandaL=Zo*(ZL+Zo*tanh(Gamma*(L-LandaL)))/(Zo+ZL*tanh(Gamma*(L-LandaL)))
Zi_L_LandaL_medios=Zo*(ZL+Zo*tanh(Gamma*(L-LandaL/2)))/(Zo+ZL*tanh(Gamma*(L-LandaL/2)))
Zi_L_Magnitud=abs(Zi_L);
Zi_L_Angulo=phase(Zi_L)*(180/pi)

%V_reflejado=(1+Gamma_Mayuscula*exp(2*Gamma*z));
V_reflejado=(Vo_menos*exp(-Gamma*z));
V_incidente=(Vo_mas*exp(Gamma*z));
Vs_z=(V_incidente)+(V_reflejado);
Is_z=Vs_z/Zo;
Zin=Vs_z./Is_z;%como el Zin es el mismo para todos los landa/2 entonces se asume esta para
graficarla

subplot(3,2,1),plot(z,abs(Zin),'k'),title('Zin')
subplot(3,2,2),plot(z,abs(V_incidente),'r'),title('Voltaje incidente')
subplot(3,2,3),plot(z,abs(V_reflejado),'b'),title('Voltaje reflejado')
subplot(3,2,4),plot(z,abs(Vs_z),'g'),title('Vs_z')
subplot(3,2,5),plot(z,abs(Is_z),'y'),title('Is_z')
subplot(3,2,6),plot(z,imag(Zin),'k'),title('Reactancia')

You might also like