📄 butler.m
字号:
%This Program is Designed To Simulate The Operation Of Butler Matrix Using Hamming Window
%General Antenna Array Specifications
m = input ('The Number of Array Elements : ') ;
Msgbox ('Enter The Inputs of The Ports Respectively') ;
pause
%Butler Matrix Input Operation
for I = 1 : m
A(I) = input ('The Input To This Port : ') ;
end
%Fast Fourier Transform For The Output Computation of Butler Matrix
for J=1:m
F(J)=0 ;
for I = 0 : m-1
F(J) = F(J) + (1/m^0.5)*(A(I+1)*exp(-j*2*pi*I*J/m)) ;
end
end
%Plot of The Output Radiation Pattern
t = 0 : 0.05 : 2*pi ;
U=0 ;
for I = 1 : m
U = U + (F(I)*exp(j*pi*cos(t)*(I))) ;
end
U = abs (U) ;
polar ( t , U ) ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -