summaryrefslogtreecommitdiff
path: root/3773/CH2/EX2.1/Ex2_1.sce
blob: 2c8cf1bd3b2c89931d832526e7f1b9aa5b90502c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Chapter 2: Antenna Basics
//Example 2-3.1
clc;

//Variable Initialization
e_half_power = 1/sqrt(2)    //E(theta) at half power (relative quantity)

//Calculation
theta = acos(sqrt(e_half_power)) // theta (radians)
hpbw = 2*theta*180/%pi     // Half power beamwidth (degrees)

//Result
mprintf("The Half Power Beamwidth is %.0f degrees",hpbw)