根据均匀直线阵阵因子归一化方向函数利用 MATLAB 编程并画出其方向图和其随传播空间变
%设定参数。改程序分析分析阵元数、相位差、间距和工作波长来对天线阵阵因子影响。
lamda=input('enter the value of wave length= '); %输入工作波长
N=input('enter the no. of elements= '); %输入线性图天线阵的振子个数
alfa=input('enter your progressive phase= '); %输入振子间的相位差(弧度表示)
d=input('enter the seperation distance between elements= '); %输入振子间的间距
B=(2*pi/lamda);
theta= pi/100:pi/100:2*pi;
w=alfa+B*d.*cos(theta);
AF=1/N*(abs(sin(N*(w./2))./sin(w./2))); %公式(3-6)
polar(theta,AF)
在命令行窗口输入需要的数值