You are on page 1of 2

clear

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

enter the value of pt50

pt =

50

enter hte value of lamda0.3333333

lamda =

0.3333

enter the value of l1

l =

enter the value of gt1

gt =

enter the value of gr1

gr =
1

pr =

3.5217e-06

3.5217e-06

p =

-24.5325

u =

46.9897

y =

16.9897

pl =

71.5222

71.5222

>>

You might also like