i want to plot a 2d planar array antenna using the array factor and by not using any toolbox. so far i have reffered arik d brown book on esa using matlab but im not able to get the output so far ive coded this much.

15 Ansichten (letzte 30 Tage)
l=3e8/3.3e9;
k=2*pi/l;
theta=-80:80;
phi=-80:80;
[THETA,PHI]=meshgrid(theta,phi);
My=10;
Nz=10;
dy=l/2;
dz=l/2;
deltay=0;deltaz=0;
psiy=(k*dy*sin(THETA).*sin(PHI))+deltay;
psiz=(k*dz*sin(THETA).*cos(PHI))+deltaz;
AFy=0;
AFz=0;
for m=1:My
AFy=AFy+exp(1i*(m-1)*psiy);
end
for n=1:Nz
AFz=AFz+exp(1i*(n-1)*psiz);
end
AF= AFy.*AFz;
AFmag=abs(AF);
figure
surf(PHI,THETA,AFmag);
shading interp;
colormap('default');
xlabel('phi');
zlabel('directivity');
title('');
  3 Kommentare
Shadi ebrahimi
Shadi ebrahimi am 18 Jul. 2022
Thanks.
why sin(THETA) is taken out in the above from psiz? Balanis book includes a sin(THETA) in psiz.
psiy=(-k*dy*sin(THETA).*sin(PHI))+deltay;
psiz=(-k*dz*cos(THETA))+ deltaz;
However, when I have sin(THETA) in the psiz , I can not get the AF in Balanis book. can you help answer this question. thanks.
asher bin zafar
asher bin zafar am 15 Okt. 2022
Hi Shadi,
DId you find any solution? I see that yes sin(theta) should be there in the equation of psiz. Plus, it also hase cos(phi) instead of cos(theta) . But as soon as i put it i am getting an anusual directivity graph. If you could help. Thanks in advance.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Antennas and Electromagnetic Propagation finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by