Linear/One-dimensional antenna array
조회 수: 2 (최근 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!