根據(jù)均勻直線陣陣因子歸一化方向函數(shù)利用 MATLAB 編程并畫出其方向圖和其隨傳播空間變
%設(shè)定參數(shù)。改程序分析分析陣元數(shù)、相位差、間距和工作波長來對天線陣陣因子影響。
lamda=input('enter the value of wave length= '); %輸入工作波長
N=input('enter the no. of elements= '); %輸入線性圖天線陣的振子個數(shù)
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)
在命令行窗口輸入需要的數(shù)值
標(biāo)簽: