cosine.m
来自「一维、二维阵列方向图计算」· M 代码 · 共 10 行
M
10 行
function amp=cosine(nel,peddb,nexp)
% cosine on a pedestal distribution
% scale the number of elements to correspond to -1 through +1
ped=10^(-peddb/20.);
for n=1:nel
xn=(n-1)/(nel-1)*2-1;
amp(n)=(1.-ped)*abs(cos(xn*pi/2))^nexp+ped;
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?