Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Radioation Pattern of Array Antenna with Matlab 1

Status
Not open for further replies.

lion2684

Electrical
Mar 19, 2007
2
On a planar array on the xy plane, having a matrix that describes the complex feed of each element of the array, and the matrix of cordinate, i need to calculate and polt the radiation pattern in the xz plane and yz plane, and the space z>0

i did this, but seems not to be correct:
dx=0.5
dy=0.5
Npunti=20
phi=linspace(0,2*pi,Npunti);
m=5
n=4
theta0=pi/2;
phi0=pi/4;
alfa=(0:m)'*2*pi*dx*sin(theta0)*cos(phi0);
A=exp(-i*alfa);
beta=(0:n).'*2*pi*dy*sin(theta0)*sin(phi0);
B=exp(-i*beta);
C=A*B'
theta=linspace(0,pi/2,Npunti);
F=zeros(Npunti,Npunti);
for j=1:Npunti
for p=1:Npunti
X(p,j)=sin(theta(p))*cos(phi(j))
Y(p,j)=sin(theta(p))*sin(phi(j))
for k=1:m
for h=1:n
F(p,j)=F(p,j)+ C(k,h)*exp(i*6.28*(k*X(p,j)+h*Y(p,j)))
end
end
end
end
surfl (theta,phi,F)


can some1 help me?i'd much appreciate it!thank you!
 
Replies continue below

Recommended for you

i did it, i can post the solution if there's anybody interested!
 
Hi, lion2684.
I am interested to see the solution, can you post it?
Thanks,
Mario
 
lion, I'm interested and I'd also like to be able to plot the 2D contour plot.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor