bwidth.m

来自「用matlab编写的电磁学方面的函数和图像」· M 代码 · 共 31 行

M
31
字号
% bwidth.m - beamwidth mapping from psi-space to phi-space
%
% Usage: dphi = bwidth(d, ph0, dpsi)
%
% d    = array spacing in units of lambda
% ph0  = beam steering angle in degrees
% dpsi = beamwidth in psi-space (in radians)
%
% dphi = beamwidth in degrees
%
% notes: uses the transformation dpsi=2*pi*d*sin(ph0)*dphi, which follows 
%        from differentiating psi=2*pi*d*(cos(phi) - cos(phi0)),
%        usually, dpsi inpuit is calculated from dpsi=b*0.886*2*pi/N
%        where b is the broadening factor depending on the window design method

% S. J. Orfanidis - 1997 - www.ece.rutgers.edu/~orfanidi/ewa

function dphi = bwidth(d, ph0, dpsi)

if nargin==0, help bwidth; return; end

ph0 = ph0 * pi / 180;

if abs(sin(ph0)) < eps, 
   dphi = sqrt(2*dpsi / (pi*d));                  % endfire 
else
   dphi = dpsi / (2 * pi * d * sin(ph0));         % broadside
end

dphi = dphi * 180 / pi;

⌨️ 快捷键说明

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