dmax.m
来自「用matlab编写的电磁学方面的函数和图像」· M 代码 · 共 27 行
M
27 行
% dmax.m - computes directivity and beam solid angle of g(th) gain
%
% Usage: [D, Om] = dmax(th, g)
%
% th = row vector of equally-spaced polar angles in [0,pi]
% g = power gain evaluated at th
%
% D = directivity
% Om = beam solid angle
%
% notes: D = 4*pi/Om
% g must be normalized to unity maximum
% g can be obtained from DIPOLE, TRAVEL, RHOMBIC, VEE
% S. J. Orfanidis - 1997 - www.ece.rutgers.edu/~orfanidi/ewa
function [D, Om] = dmax(th, g)
if nargin==0, help dmax; return; end
N = size(th(:), 1) - 1;
Om = 2 * pi * sum(g .* sin(th)) * pi / N;
D = 4 * pi / Om;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?