-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPL_free.m
More file actions
18 lines (16 loc) · 601 Bytes
/
PL_free.m
File metadata and controls
18 lines (16 loc) · 601 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function PL=PL_free(fc,dist,Gt,Gr)
% Free Space Path loss Model
% Input
% fc : carrier frequency[Hz]
% dist : between base station and mobile station[m]
% Gt : transmitter gain
% Gr : receiver gain
% output
% PL : path loss[dB]
%MIMO-OFDM Wireless Communications with MATLAB¢ç Yong Soo Cho, Jaekwon Kim, Won Young Yang and Chung G. Kang
%2010 John Wiley & Sons (Asia) Pte Ltd
lamda = 3e8/fc;
tmp = lamda./(4*pi*dist);
if nargin>2, tmp = tmp*sqrt(Gt); end
if nargin>3, tmp = tmp*sqrt(Gr); end
PL = -20*log10(tmp); % Eq.(1.2)/(1.3)