-
Notifications
You must be signed in to change notification settings - Fork 1
/
function_antenna_gain_TR.m
30 lines (27 loc) · 1.17 KB
/
function_antenna_gain_TR.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
function [output_antenna_gain_TR]=function_antenna_gain_TR(p1, p2) % p2 denotes Receiver and p1 denotes Transmitter
% Author: Ke(Ken)WANG from Macao Polytechnic Institute
% Email: ke.wang@ipm.edu.mo, kewang0225@gmail.com
% Update infomation: v0.1(2020/11/19), v0.2(2021/08/26), v0.3(2021/09/04)
%
% This function aims to calculate the gain of transceiver.
% Note that since we suppose the transceiver is isotropic, then the gain
% always equals to 1.
%
% License: This code is licensed under the GPLv2 license. If you in any way
% use this code for research that results in publications, please cite our
% original article.
%
% Example:
%
% [output_antenna_gain_TR]=function_antenna_gain_TR(eye(3), [1,2,3;4,5,6;7,8,9])
%
% output_antenna_gain_TR =
%
% 1 1 1
%Note that in this function, we use 'function _theta' only for knowing
%the size of the output. We don't use the content of the output.
theta_p1_p2 = function_theta_v2(p1, p2);
% Note that since we suppose the transceiver is isotropic, then the gain
% always equals to 1.
output_antenna_gain_TR = ones(size(theta_p1_p2, 1), size(theta_p1_p2, 2));
end