summaryrefslogtreecommitdiff
path: root/998/CH29/EX29.29/Ex29.sce
blob: c3fffe2799364acb6981652ffd25abfd9d4ea4cf (plain)
1
2
3
4
5
6
7
8
9
10
11
//Ex:29
clc;
clear;
close;
u=0.55;//aperture efficiency
f=12;// in GHz
d=3;// diameter in m
G_i=u*(10.472*f*d)^2;
g=ceil(G_i);
g_i=10*log(g)/log(10);//in db
printf("Gain=%f ",g_i);