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

📄 pattern.m

📁 这是个智能天线系统
💻 M
字号:
%A General Code for The Radiation Pattern Representation of The Array Factor of A Linear Antenna Array
%General Antenna Array Specifications
N = input ('The Number Of Array Elements : ') ;
K = input ('The Spacing Between Elements in Wavelength : ') ;
msgbox ('Enter The Currents flowing through the Elements Respectively') ;
pause
A = hamming ( N ).' ;
for I = 1 : N
    Current = I
    Cm(I) = input ('Enter the Magnitude of the Current in Amperes : ') ;
    Cp(I) = input ('Enter the Phase of the Current in Radians : ') ; 
    C(I) = Cm(I) * exp(-j*Cp(I)) * A ( I ) ;
end
%Plot of The Output Polar And Space Radiation Pattern
u = 0:0.01:2*pi ;
H = 0 ;
for I = 1 : N
    H = H + ( C(I) .* exp ( j * ( I-1 ) * K * cos (u) ) ) ;
end
F = abs ( H ) ;
figure ( 1 ) , polar ( u , F ) ;
F = 20*log10 ( F / max ( F ) ) ;
u = u * 180 / pi ;
figure ( 2 ) , plot ( u , F ,'-k') , xlabel ('The Direction Angles In Degrees') , ylabel ('The Normalized Electric Field In dB') , axis ([ 0 180 -40 0 ]) , grid on ;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -