MATLAB - antenna pattern design

hi all,

i need to design an antenna pattern (eg. pencil-beam) for downlink beamforming using MATLAB.
mamaiAsked:
Who is Participating?
 
prashant_n_mhatreConnect With a Mentor Commented:
Below is a MatLab code that computes an antenna pattern, normalizes the results to the peak, and plots the results as a function of theta:

kh=(2*pi);
theta(1)=0;
for i=1:1000
r(i)=sin(theta(i))*2*cos(kh*cos(theta(i)));
if(i<1000)
theta(i+1)=theta(i)+pi/1000;
end
end

dB=20*log(r/max(r));
plot(theta,dB)
axis([0 pi -70 0])
title('Plot of Radiation Pattern for l=10\lambda (the increase in # of lobes is significant)')
xlabel('\theta')
ylabel('dB')

0
 
prashant_n_mhatreCommented:
done?
0
 
nico5038Commented:

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
 - Answered by: prashant_n_mhatre
Please leave any comments here within the
next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !

Nic;o)
0
 
NetminderCommented:
Per recommendation, force-accepted.

Netminder
EE Admin
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.