Anda di halaman 1dari 4

% Tugas Propagasi Gelombang Radio

% Nama : Nyoman Wendy Saputra


% NIM : 0704405076
% Material : Glass
% Menampilkan input, output, grafik E dengan z dan H dan z

% --------------------
% Proses input
% --------------------

%Input

miu0 = 4*pi* (10^-7);


miuR = 1;
ep0 = 8.854 * (10^-12);
epR = 4;
f = 10^9;
konduk = 0.005;
E0 = 2;
phase = 0;

% --------------------
% Proses grafik
% --------------------

% Menentukan T

T = [0.0 0.0000000001 0.0000000002 0.0000000003 0.0000000004 0.0000000005];

% Menentukan waktu

waktu0 = 0.0 * (1/f);


waktu1 = 0.1 * (1/f);
waktu2 = 0.2 * (1/f);
waktu3 = 0.3 * (1/f);
waktu4 = 0.4 * (1/f);
waktu5 = 0.5 * (1/f);

% Menentukan z

z = [0.200:0.020:0.300];

% Menghitung miu

miu = (miu0 * miuR);

% Menghitung eps

ep = (ep0 * epR);

% Menghitung omg

omg = (2*pi)./T;
% Penyederhanaan proses

Sd1 = (miu*ep)/2;
Sd2 = ((konduk)./(omg.*ep)).^2;
Sd3 = (sqrt(Sd2)+1)-1;
Sd4 = (sqrt(Sd2)+1)+1;
Sd5 = sqrt (Sd3.*Sd1);
Sd6 = sqrt (Sd4.*Sd2);

% Menghitung beta

beta = omg.*(Sd6);

% Menghitung alpha

alpha = omg.*(Sd5);

%Menghitung gamma

gamma = alpha + (i)*beta;

% Menghitung etha

etha = sqrt ((miu)/(ep))./(((((konduk)./(omg.*ep)).^2)+1).^0.25);

% Menghitung lamda

lamda = (2*pi)./beta;

% Menghitung E

E1 = (E0.*exp((alpha.*z).*-1)).*(cosd(omg.*waktu0)-(beta.*z));
E2 = (E0.*exp((alpha.*z).*-1)).*(cosd(omg.*waktu1)-(beta.*z));
E3 = (E0.*exp((alpha.*z).*-1)).*(cosd(omg.*waktu2)-(beta.*z));
E4 = (E0.*exp((alpha.*z).*-1)).*(cosd(omg.*waktu3)-(beta.*z));
E5 = (E0.*exp((alpha.*z).*-1)).*(cosd(omg.*waktu4)-(beta.*z));
E6 = (E0.*exp((alpha.*z).*-1)).*(cosd(omg.*waktu5)-(beta.*z));

% Menghitung H

H1 = (E0./etha).*(exp((alpha.*z).*-1)).*(cosd((omg.*waktu0)-(beta.*z)-
(phase)));
H2 = (E0./etha).*(exp((alpha.*z).*-1)).*(cosd((omg.*waktu1)-(beta.*z)-
(phase)));
H3 = (E0./etha).*(exp((alpha.*z).*-1)).*(cosd((omg.*waktu2)-(beta.*z)-
(phase)));
H4 = (E0./etha).*(exp((alpha.*z).*-1)).*(cosd((omg.*waktu3)-(beta.*z)-
(phase)));
H5 = (E0./etha).*(exp((alpha.*z).*-1)).*(cosd((omg.*waktu4)-(beta.*z)-
(phase)));
H6 = (E0./etha).*(exp((alpha.*z).*-1)).*(cosd((omg.*waktu5)-(beta.*z)-
(phase)));
% --------------------
% Proses output
% --------------------

% Menghitung periode

period = (1/f);

%Menghitung omg

omega = (2 * pi * f);

%Menghitung gamma

gam = (i) * omega * (sqrt (miu*ep)) * sqrt (1-((i)*(konduk/(omega*ep))));

%Menghitung beta

bet = omega * (sqrt (((miu*ep)/2)))*((sqrt (1 + ((konduk/(omega*ep))^2)))+ 1);

%Menghitung alpha

alph = omega * (sqrt (((miu*ep)/2)))*((sqrt (1 + ((konduk/(omega*ep))^2)))-


1);

%Menghitung lamda

lamd = (2*pi)/bet;

%Menghitung v

v = lamd * f;

%Menghitung etha

eth = sqrt (miu/ep)* (1/(1-(konduk/(i*omega*ep))));

% --------------------
% Proses penampilan
% --------------------

% Menampilkan Input

disp('Input program dengan material glass');


disp (' ');
disp('frekuensi = ');
disp ([f]);
disp('konduktivitas = ');
disp ([konduk]);
disp('permitivitas = ');
disp ([epR]);
disp('permibilitas = ');
disp ([miuR]);
disp('amplitudo medan = ');
disp ([E0]);
disp('phase medan = ');
disp ([phase]);
disp (' ');
disp (' ');

% Menampilkan output

disp('Output program dengan material glass');


disp (' ');
disp('panjang gelombang = ');
disp ([lamd]);
disp('kecepatan phase = ');
disp ([v]);
disp('periode = ');
disp ([period]);
disp('impedansi intrinsik = ');
disp ([eth]);
disp('konstanta propagasi = ');
disp ([gam]);
disp('tetapan phase = ');
disp ([bet]);
disp('tetapan redaman = ');
disp ([alph]);
disp (' ');
disp (' ');

% Menampilkan grafik

plot(z,E1);
hold on;

plot(z,E2);
hold on;

plot(z,E3);

hold on;

plot(z,E4);
Title ('Hubungan E dan z dgn waktu = 0.3 *T');
xlabel('Jarak (z)');
ylabel('Medan Listrik (E)');
grid on;