⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 butler.m

📁 通过系统设计,仿真DOA主波束有用信号形成方向,干扰方向零陷
💻 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 + -