summaryrefslogtreecommitdiff
path: root/3773/CH11/EX11.2/Ex11_2.sce
blob: 943316882f0ab6aa89ffb59fb56211759474105d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Chapter 11: Broadband and Frequency-Independent Antennas
//Example 11-7.1
clc;

//Variable Initialization
gain_dbi = 7.0        //Gain (dBi)
bandwidth = 4          //Relative bandwidth (unitless)
s_lambda = 0.15       //Spacing (lambda)
k = 1.2               //Scale constant (unitless)

//Calculation
alpha = atan((1-1/k)/(4*s_lambda))*180/%pi   //Apex angle (degrees)
n = round(log(bandwidth)/log(k))    //Number of elements(unitless)
n =n + 1
n =n + 2      //Number of elements considering conservative design (unitless)

//Result
mprintf("The apex angle is %.1f degrees",alpha)
mprintf("\nThe number of elements is %d", n)