下面为一个网上的天线方向图扫描的Matlab代码
请教下sum/N已经为归一化阵因子,14行这里为何要乘以(cos(theta).^0.5 )
sum=abs(cos(theta).^0.5._*sum);_ 个人认为这不是元因子,而且删除后方向图会出现波束变形融合。求教这里(cos(theta).^0.5 )的意义和为何使用的是(cos(theta).^0.5 )。
% 更多专业内容请关注:
% 雷达通信电子战
clc;clear all;close all;
N=32;
a=0.5; % a=d/lambda
theta=-pi:0.01:pi;
for thetaB=0:1:60
thetaB1=thetaB/180*pi;
sum=0;
for i=0:N-1
y1=exp(1i*2*pi*i*a*(sin(theta)-sin(thetaB1)));
sum=sum+y1;
end
sum=abs(cos(theta).^0.5.*sum);
sum=sum/N;
clf;
% polarplot(theta,sum2,'-r');
polarplotdb(theta,sum,'-r');
pause(0.0005);
end
for thetaB=60:-1:0
thetaB1=thetaB/180*pi;
sum=0;
for i=0:N-1
y1=exp(1i*2*pi*i*a*(sin(theta)-sin(thetaB1)));
sum=sum+y1;
end
sum=abs(cos(theta).^0.5.*sum);
sum=sum/N;
clf;
% polarplot(theta,sum2,'-r');
polarplotdb(theta,sum,'-r');
pause(0.0005);
end