Skip to content
ELECTRONICS ENGINEERINGelectronics-engineering.com
Electromagnetic Fields

Trend of the Impedance Z as L Varies: a Tool Built in MATLAB

A tool built in MATLAB that determines the trend of the magnitude of the impedance Z of a transmission line with and without losses clear all whitebg; clc disp('IMPEDENZA DI LINEA'); disp(' '); Zc=input('Assegna…

https://www.electronics-engineering.com/en/trend-of-the-impedance-z-as-l-varies-a-tool-built-in-matlab/

Was this page useful? Rate it:
average 3.0 from 1 rating

A tool built in MATLAB that determines the trend of the magnitude of the impedance Z of a transmission line with and without losses

clear all
whitebg;
clc
disp('IMPEDENZA DI LINEA');
disp(' ');

Zc=input('Assegna il valore dell''impedenza caratteristica (in ohm): ');
Zl=input('Assegna il valore dell''impedenza di carico (in ohm): ');
alfa=input('Assegna il valore di alfa, che indica le perdite (in dB/m):');

z=Zl/Zc;
alfa1=alfa/8.686;
roz=(z-1)/(z+1);
A=angle(roz);
B=abs(roz);
L=0:0.001:3;
uno=exp(0.*L);
ROZ=B*exp(-4*i*pi*L).*exp(-2*alfa1*L);
C=angle(ROZ);
D=abs(ROZ);
Q=A.*uno+C;
x=D.*cos(Q);
y=D.*sin(Q);
rozNUOVO=x+i*y;
zf=((uno+rozNUOVO)./(uno-rozNUOVO));
Z=Zc*zf;

hold on
plot(L,real(Z),'b')
plot(L,imag(Z),'r')
xlabel('ANDAMENTO DI Z AL VARIARE DI L sulla carta di Smith')
zoom on

LOSSLESS LINE IMPEDANCE

Enter the value of the characteristic impedance (in ohm): 30
Enter the value of the load impedance (in ohm): 150-650i
Enter the value of alpha, which indicates the losses (in dB/m): 0

LINE IMPEDANCE WITH LOSSES

Enter the value of the characteristic impedance (in ohm): 30
Enter the value of the load impedance (in ohm): 150-650i
Enter the value of alpha, which indicates the losses (in dB/m): 0.5

Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
1
0
Would love your thoughts, please comment.x
()
x