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!
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!