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.

17 views (last 30 days)
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 Comments
Shadi ebrahimi
Shadi ebrahimi on 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 on 15 Oct 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.

Sign in to comment.

Answers (0)

Categories

Find more on Antennas and Electromagnetic Propagation in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!