Professional Documents
Culture Documents
PR 1
PR 1
clear all;
d=input("enter the value of d")
pt=input("enter the value of pt")
lamda=input("enter hte value of lamda")
l=input("enter the value of l")
gt=input("enter the value of gt")
gr=input("enter the value of gr")
pr=pt*gt*gr*(lamda^2)/(((4*3.14*d)^2)*l)
disp(pr)
p=10*log10(pr)+30
u=10*log10(pt)+30
y=10*log10(pt)
pl=u-p
disp(pl)
output
>> comm
enter the value of d100
d =
100
pt =
50
lamda =
0.3333
l =
gt =
gr =
1
pr =
3.5217e-06
3.5217e-06
p =
-24.5325
u =
46.9897
y =
16.9897
pl =
71.5222
71.5222
>>