summaryrefslogtreecommitdiff
path: root/2219/CH3/EX3.9/Ex3_9.sce
blob: 060e9a93d1f67c3018b21c41dc984f4dae4993a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Chapter 3 example 9
//------------------------------------------------------------------------------
clc;
clear;
// Given data
VSWR    = 3;        // voltage standing wave ratio
d       = 20*10^-2  // separation b/w 2 successive minimas
er      = 2.25;     // dielectric constant
v       = 3*10^8;   // velocity in m/s

// Calculations
// VSWR = (1 + p)/(1 - p)
p       = (VSWR -1)/(VSWR + 1);     // reflection co-efficient
lamda   = 2*d;                      // wavelength of tx line
lamda_fr= lamda*sqrt(er);           // free space wavelength
f       = v/lamda_fr;               // operating frequency in Hz

// output
mprintf('Magnitude of Reflection Co-efficient = %3.1f\n Frequency of Operation = %3.0f Mhz',p,f/10^6);
//------------------------------------------------------------------------------