g6.m

来自「程序仿真实现了空间信道性能」· M 代码 · 共 24 行

M
24
字号
function [G,A]=G6(Ang)
%The function G6.m gives the 6 Sector antenna numeric gain and 
%attenuation.
%
%Input Parameters
%
%Ang is the angle between the direction of interest and the boresight
%of the antenna in degrees.
%
%Output Parameters
%
%G is the numeric antenna gain in dBs
%
%A in the antenna attenuation in dB

if Ang>180
    Ang=360-Ang;
elseif Ang<-180
    Ang=360+Ang;
end
Am=23;%6 Sector antenna maximum attenuation in dB
Ang3db=35;%6 Sector 3 dB beamwidth in degrees
A=-min(12*((Ang/Ang3db)^2),Am);
G=10^(0.1*A);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?