You are on page 1of 1

%a

clear all;
f=10.04e9:10e3:11e9;
L=10e-9;
R=50;
C=1e-12;
eps_r=9;

ZL=1./((j*2*pi*f*C)+1./(R+j*2*pi*f*L));
subplot(2,2,1);plot(f/1e9,abs(ZL));title('Soal a');
xlabel('Frekuenasi(GHz)');ylabel('ZL(Ohm)');grid on;

%b
Z0=sqrt(L/C)

%c
c=3*10e8;
lamda=c./(f*sqrt(eps_r));
subplot(2,2,2);plot(f/1e9,lamda);title('Soal c');
xlabel('Frekuenasi(GHz)');ylabel('Lamda(m)');grid on;

%d
l=0.15;
Zin=Z0.*(ZL+j.*Z0*tan(2*pi*lamda*l)/(Z0+j*ZL.*tan(2*pi*lamda*l)));
subplot(2,2,3);plot(f/1e9,Zin);title('Soal d');
xlabel('Frekuenasi(GHz)');ylabel('Zin(Ohm)');grid on;

%e
Z02=75;
k_pantul=(ZL-Z02)./(ZL+Z02);
subplot(2,2,4);plot(f/1e9,k_pantul);title('Soal e');
xlabel('Frekuenasi(GHz)');ylabel('Koefisien pantul');grid on;

You might also like