You are on page 1of 5

POZAR chapter 14: RF MICROWAVE SYSTEMS. Example 04 __ 05/11/2020 03:27:32.

EXAMPLE 14.4
Click any to open the MATLAB script solving this exercise. Run script to read question and calculate solution.
On 1st run, the exercise is solved and the results are stored in .mat file. Parameters can be modified to solve
exercise variations. MATLAB student licences are cheap and there is a type that does not even require to be
registered in any university or college. All comments welcome.
To download and install MATLAB as well as review help on specific commands click any MATLAB icon:

______________________________________________________________________________________________________________________________
John Bofarull Guix jgb2012@sky.com jgb2014@live.co.uk 1/5
POZAR chapter 14: RF MICROWAVE SYSTEMS. Example 04 __ 05/11/2020 03:27:32.

pozar_14_example_04.m

c0=299792856; % [m/s] light speed


T0=290; % [Kelvin] room temperature
k_boltz=1.380649e-23 % [J/K] Boltzmann constant

a) LINK BASE BUDGET

One can declare 1st all input variables for the budget

f0=12.45e9 % [Hz] carrier frequency


lambda0=c0/f0 % [m] carrier wavelength f0 =
1.245000000000000e+10
f1=12.2e9 % [Hz] band start lambda0 =
f2=12.7e9 % [Hz] band stop 0.024079747469880
f1 =
Pt=120 % [W] transmit power 1.220000000000000e+10
PtdB=10*log10(Pt) f2 =
1.270000000000000e+10
GtdB=34 % [dB] transmit antenna gain Pt =
Gt=10^(GtdB/10) 120
PtdB =
BW_if=20e6 % [Hz] IF Bandwidth 20.791812460476248
GtdB =
GrdB=33.5 % [dB] receiving antenna gain 34
Gr=10^(GrdB/10) Gt =
Dr_in=18 % [in] receiving dish diameter 2.511886431509580e+03
BW_if =
Tb=50 % [Kelvin] ground average (noise) brightness 20000000
GrdB =
NF_LNB_dB=.7 % [dB] LNB Noise Figure 33.500000000000000
NF_LNB=10^(NF_LNB_dB/10) Gr =
2.238721138568340e+03
% there's convention for linear noise figure to use var name F Dr_in =
% and NF for noise figure in [dB], and also that when linear amount 18
% to be called noise figure, but when same in [dB] then call it noise Tb =
% factor. Some people simplify and call it just 'Noise Figure' regardless of 50
% data format. Also reserving F for frequency related variables seems NF_LNB_dB =
reasonable. 0.700000000000000
NF_LNB =
CNR_target_dB=15 % [dB] Required minumum CNR 1.174897554939530
CNR_target=10^(CNR_target_dB/10) CNR_target_dB =
15
R=39e6 % [m] GEO sat distance to Earth station CNR_target =
31.622776601683793
R=
% Free Space Loss 39000000
L0=4*pi*R/lambda0 L0 =
2.035272398819969e+10
L0dB=20*log10(L0) L0dB =
2.061724508597985e+02

or import them from Excel spread sheet:

% xlsread(filename,-1) opens an Excel window to interactively select data


% xlsread doesn't work on new xlsxs file format T1=readtable('Basic Link Budget.xlsx')
T1=readtable('Basic Link Budget.xls')

T1 =
6×15 table
Var1 Var2 Var3 Var4 Var5 Var6 Var7 Var8 Var9 Var10 Var11 Var12 Var13 Var14
Var15
____ ____________________________ __________ ____ ___________________ __________ ________________ __________ ____ _____ _____
___________ __________________ __________ ______________________________
2 {'Transmitter Antenna Gain'} {'Gt' } NaN 2511.88643150958 {'[]' } 34 {'dB' } 1 NaN NaN {'c0' } 299792856
{'n/s' } {'light speed' }
3 {'Free Space Loss' } {'FSL' } NaN 20352706796.9892 {'[]' } 206.172443523138 {'dB' } -1 NaN NaN {'f0' } 12450000000
{0×0 char} {0×0 char }
4 {'Receiver Antenna Gain' } {'Gr' } NaN 2238.72113856834 {'[]' } 33.5 {'dB' } 1 NaN NaN {'lambda0'}
0.0240797474698795 {0×0 char} {0×0 char }
______________________________________________________________________________________________________________________________
John Bofarull Guix jgb2012@sky.com jgb2014@live.co.uk 2/5
POZAR chapter 14: RF MICROWAVE SYSTEMS. Example 04 __ 05/11/2020 03:27:32.

NaN {0×0 char } {0×0 char} NaN NaN {0×0 char} NaN {0×0 char} NaN NaN NaN {'R' } 39000000
{'m' } {'Sat-Earth station distance'}
NaN {'Received Power' } {'Pr' } NaN 1.6290593008284e-12 {'W' } -87.880631062662 {'dBm' } NaN NaN NaN {0×0 char }
NaN {0×0 char} {0×0 char }
NaN {0×0 char } {0×0 char} NaN NaN {0×0 char} NaN {0×0 char} NaN NaN NaN {'pi' } 3.14159
{0×0 char} {0×0 char }

Because often spread sheets are populated with additional data that would take time for MATLAB coding to remove, one could go straight for the spread
sheet fields of interest:

T2=xlsread('Basic Link Budget.xls',1,'G2:G5') T2 =


1.0e+02 *
0.507918124604762
0.340000000000000
2.061724435231383
0.335000000000000

T3=xlsread('Basic Link Budget.xls',1,'I2:I5') T3 =


1
1
-1
1

T2=T2.*T3 T2 =
1.0e+02 *
0.507918124604762
0.340000000000000
-2.061724435231383
0.335000000000000

Variables assignment could be

PtdBm=T2(1) PtdBm =
GtdB=T2(2) 50.791812460476251
L0dB=T2(3) GtdB =
GrdB=T2(4) 34
L0dB =
-2.061724435231383e+02
GrdB =
33.500000000000000

Or taking into account units stored in additional spread sheet column. This way the solution is double checked regarding linear/dB/dBm 'spill-overs'

This basic Link Budget closes with:

Prx_dBm=sum(T2) Prx_dBm =
-87.880631062662019
Prx=10^((Prx_dBm-30)/10) Prx =
1.629059300828404e-12

b) G/T

Ta=Tb % antenna facing uniform background noise Ta =


50
T_LNB=(NF_LNB-1)*T0 T_LNB =
50.720290932463563
Te=Ta+T_LNB Te =
1.007202909324636e+02
G_ov_T=Gr/Te G_ov_T =
22.227111516878757
G_ov_T_dB=10*log10(G_ov_T) G_ov_T_dB =
13.468830284305646

______________________________________________________________________________________________________________________________
John Bofarull Guix jgb2012@sky.com jgb2014@live.co.uk 3/5
POZAR chapter 14: RF MICROWAVE SYSTEMS. Example 04 __ 05/11/2020 03:27:32.

c) CNR at LNB output

G_LNB_dB=20; % no need to, but having a guess


G_LNB=10^(G_LNB_dB/10) G_LNB =
100
CNR=Prx*G_LNB/(k_boltz*Te*BW_if*G_LNB) CNR =
CNR_dB=10*log10(CNR) 58.574237502414100
CNR_dB =
17.677066438221477

d) LINK MARGIN

Link_Margin_dB=CNR_dB-CNR_target_dB Link_Margin_dB =
2.677066438221477

______________________________________________________________________________________________________________________________
John Bofarull Guix jgb2012@sky.com jgb2014@live.co.uk 4/5
POZAR chapter 14: RF MICROWAVE SYSTEMS. Example 04 __ 05/11/2020 03:27:32.

Where is the whole collection of exercises?

This exercise is part of the collection of exercises Microwave Engineering POZAR 4th ed solved with MATLAB available in this website:
https://jgb2012.wixsite.com/microwave-eng-matlab

How can one get the main literature reference?

For instance from:


https://www.amazon.co.uk/Microwave-Engineering-David-M-Pozar/dp/0470631554

What about the solutions manual?

It's freely available https://www.scribd.com/doc/176505749/Microwave-engineering-pozar-4th-Ed-solutions-manual

For educational purposes only: https://www.copyrightuser.org/understand/exceptions/education/

______________________________________________________________________________________________________________________________
John Bofarull Guix jgb2012@sky.com jgb2014@live.co.uk 5/5

You might also like