summaryrefslogtreecommitdiff
path: root/2219/CH7/EX7.5/Ex7_5.sce
blob: 8c042dcddb4ca1b5e08ee80e8ed0e5779f2ec74a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// chapter 7 example 5
//-----------------------------------------------------------------------------
clc;
clear;
// given data
Ptot        = 100;      // certain antenna radiating power
Ptot_iso    = 10*10^3;  // isotropic antenna radiating power

// Calculations
D           = 10*log10(Ptot_iso/Ptot);  // Directivity of antenna

// Output
mprintf('Directivity of antenna = %d dB',D);
//------------------------------------------------------------------------------