微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微波和射频技术 > 天线设计和射频技术 > matlab code for isotropic point source antena array

matlab code for isotropic point source antena array

时间:04-07 整理:3721RD 点击:
want to see a plot for isotropic point source antenna array but not getting the right output.
can anybody tell me where i am doing the mistake.

n=4; // no. of point sources
k=2; //(for distance between adjacent sources; d=lambda/k)
delta=0; //succesive phase diff
phi=0:0.1:2*pi; //angle
s=(2*pi*cos(phi)/k)+delta; //(=(beta*d*cos(phi))+delta)
E=(sin(n*s/2))/(n*sin(s/2)); //electric field
plot(phi,E)

You forgot to add a "." to compute the element-by-element division.
That's a very common mistake. Even if you know, it is very easy to forget.

Use
E=(sin(n*s/2))./(n*sin(s/2));
Instead of
E=(sin(n*s/2))/(n*sin(s/2));

[/COLOR]yes eagle5 i got it...
but now i am facing problem in polar plot of this
i am using the command polar(phi,abs(E))
and i am varyin phi as phi=0:.001:2*pi
i got the error as:
Error using ==> line
Too many input arguments.

Error in ==> polar at 93
hhh=line([-maxrho -maxrho maxrho maxrho],[-maxrho maxrho maxrho -maxrho],'parent',cax);

Error in ==> antenna at 7
polar(phi,abs(E))[COLOR="Silver"]

---------- Post added at 18:46 ---------- Previous post was at 18:44 ----------

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top