parabs.m

来自「MATLAB无线网络的各种例子,相当全面」· M 代码 · 共 30 行

M
30
字号
% PARABS   Provides  the  diameter  D and  the focal  distance F in 
%          wavelength for parabolic reflector.
%
%          [D, F] = PARABS(GA,SG)
%
%          GA is the antenna gain in DBi and SG the surface standard
%          deviation in wavelength. 

% RFWave - The Radio Frequency Wave Toolbox
% Version: 1.2 16-Jul-2002
% Developed by A. C. de C. Lima 
% E-mail: acdcl@ufba.br
% Electrical Engineering Department
% Federal University of Bahia (UFBA)
% Brazil

function [d,f] = parabs(ga,sg)

eap=0.8288;
th0=1.1624;

% Reflector diameter 
do=10^(ga/10);
c=sqrt(do/(eap*exp(-(4*pi*sg)^2)));
d=c/pi;

% Focal distance
f=d/4*tan(th0/2);

⌨️ 快捷键说明

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