0% found this document useful (0 votes)
28 views3 pages

Antenna

This document contains code to model the radiation pattern of a linear antenna array. The code takes user input for the number of antenna elements, phase angle, wavelength, and distance between elements. It then calculates the radiation pattern and identifies the directions of the major lobe, minor lobes, and half power points.

Uploaded by

harsh_rathod_2
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views3 pages

Antenna

This document contains code to model the radiation pattern of a linear antenna array. The code takes user input for the number of antenna elements, phase angle, wavelength, and distance between elements. It then calculates the radiation pattern and identifies the directions of the major lobe, minor lobes, and half power points.

Uploaded by

harsh_rathod_2
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

code

n=input('Enter no. of Element.....:'); alfa=input('Enter Phase Angle(alfa)......(in degree):'); alfa=alfa*pi/180; l=input('Enter wavelength..(in cm)...:'); l=l/100; p=input('Enter distance between two adjecent element...(in cm): '); d=p/100; b=2*pi/l; phi=0:359; rphi=[]; for i=1:360 rphi(i)=phi(i)*pi/180; end sai=b*d*cos(rphi)+alfa; e=[]; for i=1:360 e(i)=(sin(n*sai(i)*0.5))/(n*sin(sai(i)/2)); end polar(rphi,e) title('RADIATION PATTERN'); maxi=[]; mini=[]; half=[]; for i=1:360 if abs(e(i))==abs(max(e)) maxi=[maxi (i-1)]; end if abs(e(i))==abs(min(e)) mini=[mini (i-1)]; end if abs((e(i)-0.7))<0.009 half=[half (i-1)]; end end

disp('Direction of major lobe '); disp(maxi); disp('Direction of minor lobe '); disp(mini); disp('Direction OF half power '); disp(half);

output
Enter no. of Element.....:4 Enter Phase Angle(alfa)......(in degree):0 Enter wavelength..(in cm)...:50 Enter distance between two adjecent element...(in cm): 25 Direction of major lobe 90 270

Direction of minor lobe 43 137 223 317

Direction OF half power

You might also like