Linear/One-dimensional antenna array
3 次查看(过去 30 天)
显示 更早的评论
Could someone please evaluate this program and tell me if it works fine. The purpose of this program is to see what the plot of one dimensional antenna pattern looks like. First you choose Number of elements in array and Wavenumber. Than for each element you enter its Magnitude, Phase and Position (on X axis). At the end program draw a beampattern plot of one dimensional antenna array.
%Tadej Trinko linear array pattern
%email:tadej.trinko@gmail.com
clear all;
N = input ('Enter The Number Of Array Elements : ') ;
lambda = input ('Enter The Value Of Lambda (c/f) : ') ;
B =(2*pi/lambda);
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 : ') ;
K = input ('Enter the Position of Element on X-axis : ') ;
C(I) = Cm(I) * exp(1j * B * sin(Cp(I)*pi/180));
end
%Plot of The Output Polar
u = 0:0.01:2*pi ; %0<u<2*pi
H = 0 ;
for I = 1 : N
H = H + ( C(I) .* exp ( -1j * ( I-1 ) * K * sin (u) ) ) ;
end
F = abs ( H ) ;
figure ( 1 ) , polar ( u , F ) ;
Thank you in advance.
Best regards, Tadej
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Phased Array Design and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!