## Antenna - Theory .com: The Antenna Site

antenna-theory.com :: View topic - Problems in plotting figure 5 in the course antenna theory
antenna-theory.com
Antenna Theory

Author Message
Tagalb
Antenna-Theory.com Newbie

Joined: 28 Aug 2017
Posts: 2

 Posted: Tue Aug 29, 2017 7:29 am    Post subject: Problems in plotting figure 5 in the course antenna theory Hello I am trying to plot the Figure 5 (Magnitude of the output as a function of the arrival angle for Antenna Array):http://www.antenna-theory.com/arrays/main.php But it seems like it is not so simple. I wrote this simple code but I do not have the desired result: teta_angle = 1:0.25:180; y1= exp(-j*pi*cos(teta_angle)); y2= exp(j*pi*cos(teta_angle)); y=y1+y2; Y=mag2db(abs(y)); plot(teta_angle,Y) Could you maybe help me to figure out what is wrong with my code ? Thanks
admin
Site Admin

Joined: 03 Jan 2007
Posts: 192

 Posted: Tue Aug 29, 2017 5:13 pm    Post subject: Looks like your taking cosine of an angle in degrees, should be radians
Tagalb
Antenna-Theory.com Newbie

Joined: 28 Aug 2017
Posts: 2

 Posted: Thu Aug 31, 2017 2:01 pm    Post subject: Actually I found it, thank you
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First
 All times are GMT Page 1 of 1

 Jump to: Select a forum The Antenna Forum----------------Questions Related to Antenna TheoryNews
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2005 phpBB Group