Sei sulla pagina 1di 3

# LAB 09 :LINK BUDGET EQUATION

MATLAB CODE:

clear all
clc
pt=input('input transmitted power(dB) : ');
gt=input('input Tx antenna gain (dB); ');
gr=input('input Rx antenna gain(dB) : ' );
f=input('input frequency : ');
lemda=(3e8/f);
L=((4*3.14*R)/(lemda))^2;
pavg=(pt*gt*gr)/L;
disp('final avg Power in Watts = ');
disp(pavg);

OUTPUT:

input transmitted power(dB) : 1100
input Tx antenna gain (dB); 130
input Rx antenna gain(dB) : 210
input frequency : 60000
final avg Power in Watts =
1.2790e+007
>>

TC- 07
LAB # 09

clear all
clc
pt=input('GIVE transmitted power(dB) : ');
gt=input('GIVE Tx antenna gain (dB); ');
gr=input('GIVE frequency : ');
GAIN=iinput('GIVE Rx antenna gain(dB) : ' );
wavelength=(3e8/f);
L=((4*3.14*GAIN)/(wavelength))^2;
pavg=(pt*gt*gr)/L;
disp('calculated Power in Watts = ');
disp(pavg);

OUTPUT:

GIVE transmitted power(dB) : 1220
GIVE Tx antenna gain (dB); 140
GIVE Rx antenna gain(dB) : 200
GIVE frequency : 60000
calculated Power in Watts =
1.5552e+007

TC-09
LAB NO 9:

clear all
clc
pt=input('SUBMIT transmitted power(dB) : ');
gt=input('SUBMIT Tx antenna gain (dB); ');
gr=input('SUBMIT frequency : ');
R=input('SUBMIT Rx antenna gain(dB) : ' );
LAMDA=(3e8/f);
L=((4*3.14*R)/(LAMDA))^2;
pavg=(pt*gt*gr)/L;
disp('THE AVERAGE Power = ');
disp(pavg);

CALCULATION:

SUBMIT transmitted power(dB) : 1230
SUBMIT Tx antenna gain (dB); 150
SUBMIT frequency : 220
SUBMIT Rx antenna gain(dB) : 50000
THE AVERAGE Power =
2.5730e+007
>>

TC-63