SlideShare a Scribd company logo
1 of 14
PROGRAMS:
1. Program for finding the beam area an antenna.
clc;
close all;
clear all;
tmin=input('The lower bound of theta in degree=');
tmax=input('The upper bound of theta in degree=');
pmin=input('The lower bound of phi in degree=');
pmax=input('The upper bound of phi in degree=');
theta=(tmin:tmax)*pi/180;
phi=(pmin:pmax)*pi/180;
dth=theta(2)-theta(1); dph=phi(2)-phi(1);
[THETA,PHI]=meshgrid(theta,phi);
x=input('The field pattern : E(THETA,PHI)=');
v=input('The power pattern: P(THETA,PHI)=','s');
Prad=sum(sum((x.^2).*sin(THETA)*dth*dph));
fprintf('n Input Parameters: n-------------------- ');
fprintf('n Theta =%2.0f',tmin);
fprintf(' : %2.0f',dth*180/pi);
fprintf(' : %2.0f',tmax);
fprintf('n Phi =%2.0f',pmin);
fprintf(' : %2.0f',dph*180/pi);
fprintf(' : %2.0f',pmax);
fprintf('n POWER PATTERN : %s',v)
fprintf('n n Output Parameters: n-------------------- ');
fprintf('nBEAM AREA (steradians)=%3.2f',Prad);
Output of Program 1:
The lower bound of theta in degree=0
The upper bound of theta in degree=90
The lower bound of phi in degree=0
The upper bound of phi in degree=360
The field pattern : 1
The power pattern : cos(THETA).^2
BEAM AREA (steradians)= 2.10
2.Program for finding directivity of an antenna.
clc;
close all;
clear all;
tmin=input('The lower bound of theta in degree=');
tmax=input('The upper bound of theta in degree=');
pmin=input('The lower bound of phi in degree=');
pmax=input('The upper bound of phi in degree=');
theta=(tmin:tmax)*(pi/180);
phi=(pmin:pmax)*(pi/180);
dth=theta(2)-theta(1);
dph=phi(2)-phi(1);
[THETA,PHI]=meshgrid(theta,phi);
x=input('The field pattern : E(THETA,PHI)=');
v=input('The power pattern: P(THETA,PHI)=','s');
Prad=sum(sum((x.^2).*sin(THETA)*dth*dph));
D=4*pi*max(max(x.^2))/(Prad);
Ddb=10*log10(D);
D1=((D));
fprintf('n Input Parameters: n-------------------- ');
fprintf('n Theta =%2.0f',tmin);
fprintf(' : %2.0f',dth*180/pi);
fprintf(' : %2.0f',tmax);
fprintf('n Phi =%2.0f',pmin);
fprintf(' : %2.0f',dph*180/pi);
fprintf(' : %2.0f',pmax);
fprintf('n POWER PATTERN : %s',v)
fprintf('n n Output Parameters: n-------------------- ');
fprintf('nBEAM AREA (steradians)=%3.2f',Prad);
fprintf('nDIRECTIVITY (Dimensionless)=%3.0f',D);
fprintf('nDIRECTIVITY (dB)=%6.4f',Ddb);
fprintf('n');
Output of Program 2:
The lower bound of theta in degree=0
The upper bound of theta in degree=90
The lower bound of phi in degree=0
The upper bound of phi in degree=360
The field pattern : 1
The power pattern : cos(THETA).^2
BEAM AREA (steradians)= 2.10
DIRECTIVITY (Dimensionless)= 6
DIRECTIVITY (dB)= 7.7698
PROGRAMS:
1.Program to plot the 3-D radiation pattern of the omni-directional antenna.
clc;
clear all;
close all;
tmin=input('The Lower Range of Theta in Degree= ');
tmax=input('The Upper Range of Theta in Degree= ');
pmin=input('The Lower Range of Phi in Degree= ');
pmax=input('The Upper Range of Phi in Degree= ');
tinc=2; pinc=4;
rad=pi/180;
theta1=(tmin:tinc:tmax);
phi1=(pmin:pinc:pmax);
theta=theta1.*rad;
phi=phi1.*rad;
[THETA,PHI]=meshgrid(theta,phi);
y1=input('The field pattern: E(THETA,PHI)=');
v=input('The field pattern: P(THETA,PHI)=','s');
y=abs(y1);
ratio=max(max(y));
[X,Y,Z]=sph2cart(THETA,PHI,y);
mesh(X,Y,Z);
title('3 D Pattern','Color','b','FontName','Helvetica','FontSize',12,'FontWeight','demi');
fprintf('n Input Parameters: n-------------------- ');
fprintf('n Theta =%2.0f',tmin);
fprintf(' : %2.0f',tinc);
fprintf(' : %2.0f',tmax);
fprintf('n Phi =%2.0f',pmin);
fprintf(' : %2.0f',pinc);
fprintf(' : %2.0f',pmax);
fprintf('n FIELD PATTERN : %s',v)
fprintf('n n Output is shown in the figure below----------- ');
fprintf('n');
Output:
The Lower Range of Theta in degree=2
The Upper Range of Theta in degree=360
The Lower Range of Phi in degree=4
The Upper Range of Phi in degree=360
The field pattern : 1
The field pattern : cos(THETA)
Output is shown in the figure below:
2.Program to plot 2-D pattern of an omni-directional antenna.
clc;
close all;
clear all;
theta=0:0.1:2*pi;
r=1;
[T,R]=meshgrid(theta,r);
polar(T,R,'*r')
Output:
2-D PATTERN
3.Program to plot 3-D pattern of directional antenna.
clc;
clear all;
close all;
tmin=input('The Lower Range of Theta in Degree= ');
tmax=input('The Upper Range of Theta in Degree= ');
pmin=input('The Lower Range of Phi in Degree= ');
pmax=input('The Upper Range of Phi in Degree= ');
tinc=2; pinc=4;
rad=pi/180;
theta1=(tmin:tinc:tmax);
phi1=(pmin:pinc:pmax);
theta=theta1.*rad;
phi=phi1.*rad;
[THETA,PHI]=meshgrid(theta,phi);
y1=input('The field pattern: E(THETA,PHI)=');
v=input('The field pattern: P(THETA,PHI)=','s');
y=abs(y1);
ratio=max(max(y));
[X,Y,Z]=sph2cart(THETA,PHI,y);
mesh(X,Y,Z);
title('3 D Pattern','Color','b','FontName','Helvetica','FontSize',12,'FontWeight','demi');
fprintf('n Input Parameters: n-------------------- ');
fprintf('n Theta =%2.0f',tmin);
fprintf(' : %2.0f',tinc);
fprintf(' : %2.0f',tmax);
fprintf('n Phi =%2.0f',pmin);
fprintf(' : %2.0f',pinc);
fprintf(' : %2.0f',pmax);
fprintf('n FIELD PATTERN : %s',v)
fprintf('n n Output is shown in the figure below----------- ');
fprintf('n');
Output:
The Lower Range of Theta in degree=2
The Upper Range of Theta in degree=360
The Lower Range of Phi in degree=4
The Upper Range of Phi in degree=360
The field pattern : 1
The field pattern : cos(THETA).*sin(PHI)
Output is shown in the figure below-----------
(1) For 2-D
clc;
close all;
clear all;
phi=0:0.1:2*pi;
e=abs(sin(phi));
polar(phi,e)
Output:
PROGRAMS:
1.To plot the array pattern and power pattern of the linear array.
Clc;
close all;
clear all;
phi=0:.1:2*pi;
d=input('give value of d:');
c=3*(10^8);
f=input('enter frequency of signal:');
l=c/f;
D=input('enter the distance between two antennas:');
B=2*pi/l
Dr=B*D
n=input('enter no. of point sources:')
si=abs(Dr*cos(phi)+d);
Eo=abs((1/n).*sin(n.*si./2)./sin(si./2));
polar(phi,Eo)
Output:
give value of d:0
enter frequency of signal:1e9
enter the distance between two antennas:l/2
enter no. of point sources:4
FIELD PATTERN
POWER PATTERN
2.To plot radiation pattern of the end-fire array.
Clc;
close all;
clear all;
phi=0:.1:2*pi;
c=3*(10^8);
f=input('enter frequency of signal:');
l=c/f;
D=input('enter the distance between two antennas:');
B=2*pi/l
Dr=B*D
d=input('give value of d:');
n=input('enter no. of point sources:')
si=abs(Dr*cos(phi)+d);
Eo=abs((sin(n*si/2))./sin(si/2)); FIELD PATTERN:
polar(phi,Eo)
Output:
enter frequency of signal:1e9
enter the distance between two antennas:l/2
give value of d:-Dr
enter no. of point sources:4
3.To plot the radiation pattern of broad-side array.
Clc;
close all;
clear all;
phi=0:.1:2*pi;
c=3*(10^8);
f=input('enter frequency of signal:');
l=c/f;
D=input('enter the distance between two antennas:');
B=2*pi/l
Dr=B*D
d=input('give value of d:');
n=input('enter no. of point sources:')
si=abs(Dr*cos(phi)+d); FIELD PATTERN:
Eo=abs((sin(n*si/2))./sin(si/2));
polar(phi,Eo)
Output:
enter frequency of signal:1e9
enter the distance between two antennas:l/2
give value of d:0
enter no. of point sources:4

More Related Content

Similar to ANtenna Final.docx

Introduction to CFD FORTRAN code
Introduction to CFD FORTRAN codeIntroduction to CFD FORTRAN code
Introduction to CFD FORTRAN code
Behnam Bozorgmehr
 

Similar to ANtenna Final.docx (20)

Digital communication telecommunication lab ksit
Digital communication telecommunication lab ksitDigital communication telecommunication lab ksit
Digital communication telecommunication lab ksit
 
DSP LAB COMPLETE CODES.docx
DSP LAB COMPLETE CODES.docxDSP LAB COMPLETE CODES.docx
DSP LAB COMPLETE CODES.docx
 
Exam 6 commlab 18_119_ei0292
Exam 6 commlab 18_119_ei0292Exam 6 commlab 18_119_ei0292
Exam 6 commlab 18_119_ei0292
 
Signal & system
Signal & systemSignal & system
Signal & system
 
Root Locus Method - Control System - Bsc Engineering
Root Locus Method - Control System - Bsc EngineeringRoot Locus Method - Control System - Bsc Engineering
Root Locus Method - Control System - Bsc Engineering
 
Dsp manual
Dsp manualDsp manual
Dsp manual
 
MATLAB CODE OF Shifting sequence
MATLAB  CODE  OF Shifting sequenceMATLAB  CODE  OF Shifting sequence
MATLAB CODE OF Shifting sequence
 
Matlab file
Matlab file Matlab file
Matlab file
 
Modulation techniques matlab_code
Modulation techniques matlab_codeModulation techniques matlab_code
Modulation techniques matlab_code
 
A Simple Communication System Design Lab #3 with MATLAB Simulink
A Simple Communication System Design Lab #3 with MATLAB SimulinkA Simple Communication System Design Lab #3 with MATLAB Simulink
A Simple Communication System Design Lab #3 with MATLAB Simulink
 
Program for axisymmetric problem kant
Program for axisymmetric problem kantProgram for axisymmetric problem kant
Program for axisymmetric problem kant
 
Program for axisymmetric problem matlab
Program for axisymmetric problem  matlabProgram for axisymmetric problem  matlab
Program for axisymmetric problem matlab
 
Ch8a
Ch8aCh8a
Ch8a
 
Metnum
MetnumMetnum
Metnum
 
9.C Programming
9.C Programming9.C Programming
9.C Programming
 
Dsp manual
Dsp manualDsp manual
Dsp manual
 
Introduction to CFD FORTRAN code
Introduction to CFD FORTRAN codeIntroduction to CFD FORTRAN code
Introduction to CFD FORTRAN code
 
Graphics point clipping c program
Graphics point clipping c programGraphics point clipping c program
Graphics point clipping c program
 
Bayesian Inference and Uncertainty Quantification for Inverse Problems
Bayesian Inference and Uncertainty Quantification for Inverse ProblemsBayesian Inference and Uncertainty Quantification for Inverse Problems
Bayesian Inference and Uncertainty Quantification for Inverse Problems
 
Numerical Methods in C
Numerical Methods in CNumerical Methods in C
Numerical Methods in C
 

Recently uploaded

Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manual
BalamuruganV28
 
electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.
benjamincojr
 
Artificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdfArtificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdf
Kira Dess
 

Recently uploaded (20)

Dynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptxDynamo Scripts for Task IDs and Space Naming.pptx
Dynamo Scripts for Task IDs and Space Naming.pptx
 
What is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, FunctionsWhat is Coordinate Measuring Machine? CMM Types, Features, Functions
What is Coordinate Measuring Machine? CMM Types, Features, Functions
 
CLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference ModalCLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference Modal
 
History of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & ModernizationHistory of Indian Railways - the story of Growth & Modernization
History of Indian Railways - the story of Growth & Modernization
 
Final DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manualFinal DBMS Manual (2).pdf final lab manual
Final DBMS Manual (2).pdf final lab manual
 
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTUUNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
UNIT-2 image enhancement.pdf Image Processing Unit 2 AKTU
 
Intro to Design (for Engineers) at Sydney Uni
Intro to Design (for Engineers) at Sydney UniIntro to Design (for Engineers) at Sydney Uni
Intro to Design (for Engineers) at Sydney Uni
 
Research Methodolgy & Intellectual Property Rights Series 1
Research Methodolgy & Intellectual Property Rights Series 1Research Methodolgy & Intellectual Property Rights Series 1
Research Methodolgy & Intellectual Property Rights Series 1
 
electrical installation and maintenance.
electrical installation and maintenance.electrical installation and maintenance.
electrical installation and maintenance.
 
handbook on reinforce concrete and detailing
handbook on reinforce concrete and detailinghandbook on reinforce concrete and detailing
handbook on reinforce concrete and detailing
 
Autodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxAutodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptx
 
Software Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdfSoftware Engineering Practical File Front Pages.pdf
Software Engineering Practical File Front Pages.pdf
 
Worksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptxWorksharing and 3D Modeling with Revit.pptx
Worksharing and 3D Modeling with Revit.pptx
 
5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...5G and 6G refer to generations of mobile network technology, each representin...
5G and 6G refer to generations of mobile network technology, each representin...
 
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and ToolsMaximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
Maximizing Incident Investigation Efficacy in Oil & Gas: Techniques and Tools
 
Artificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdfArtificial intelligence presentation2-171219131633.pdf
Artificial intelligence presentation2-171219131633.pdf
 
Diploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdfDiploma Engineering Drawing Qp-2024 Ece .pdf
Diploma Engineering Drawing Qp-2024 Ece .pdf
 
Circuit Breakers for Engineering Students
Circuit Breakers for Engineering StudentsCircuit Breakers for Engineering Students
Circuit Breakers for Engineering Students
 
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas SachpazisSeismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
Seismic Hazard Assessment Software in Python by Prof. Dr. Costas Sachpazis
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
 

ANtenna Final.docx

  • 1. PROGRAMS: 1. Program for finding the beam area an antenna. clc; close all; clear all; tmin=input('The lower bound of theta in degree='); tmax=input('The upper bound of theta in degree='); pmin=input('The lower bound of phi in degree='); pmax=input('The upper bound of phi in degree='); theta=(tmin:tmax)*pi/180; phi=(pmin:pmax)*pi/180; dth=theta(2)-theta(1); dph=phi(2)-phi(1); [THETA,PHI]=meshgrid(theta,phi); x=input('The field pattern : E(THETA,PHI)='); v=input('The power pattern: P(THETA,PHI)=','s'); Prad=sum(sum((x.^2).*sin(THETA)*dth*dph)); fprintf('n Input Parameters: n-------------------- '); fprintf('n Theta =%2.0f',tmin); fprintf(' : %2.0f',dth*180/pi); fprintf(' : %2.0f',tmax); fprintf('n Phi =%2.0f',pmin); fprintf(' : %2.0f',dph*180/pi); fprintf(' : %2.0f',pmax); fprintf('n POWER PATTERN : %s',v) fprintf('n n Output Parameters: n-------------------- '); fprintf('nBEAM AREA (steradians)=%3.2f',Prad);
  • 2. Output of Program 1: The lower bound of theta in degree=0 The upper bound of theta in degree=90 The lower bound of phi in degree=0 The upper bound of phi in degree=360 The field pattern : 1 The power pattern : cos(THETA).^2 BEAM AREA (steradians)= 2.10
  • 3. 2.Program for finding directivity of an antenna. clc; close all; clear all; tmin=input('The lower bound of theta in degree='); tmax=input('The upper bound of theta in degree='); pmin=input('The lower bound of phi in degree='); pmax=input('The upper bound of phi in degree='); theta=(tmin:tmax)*(pi/180); phi=(pmin:pmax)*(pi/180); dth=theta(2)-theta(1); dph=phi(2)-phi(1); [THETA,PHI]=meshgrid(theta,phi); x=input('The field pattern : E(THETA,PHI)='); v=input('The power pattern: P(THETA,PHI)=','s'); Prad=sum(sum((x.^2).*sin(THETA)*dth*dph)); D=4*pi*max(max(x.^2))/(Prad); Ddb=10*log10(D); D1=((D)); fprintf('n Input Parameters: n-------------------- '); fprintf('n Theta =%2.0f',tmin); fprintf(' : %2.0f',dth*180/pi); fprintf(' : %2.0f',tmax); fprintf('n Phi =%2.0f',pmin); fprintf(' : %2.0f',dph*180/pi); fprintf(' : %2.0f',pmax);
  • 4. fprintf('n POWER PATTERN : %s',v) fprintf('n n Output Parameters: n-------------------- '); fprintf('nBEAM AREA (steradians)=%3.2f',Prad); fprintf('nDIRECTIVITY (Dimensionless)=%3.0f',D); fprintf('nDIRECTIVITY (dB)=%6.4f',Ddb); fprintf('n'); Output of Program 2: The lower bound of theta in degree=0 The upper bound of theta in degree=90 The lower bound of phi in degree=0 The upper bound of phi in degree=360 The field pattern : 1 The power pattern : cos(THETA).^2 BEAM AREA (steradians)= 2.10 DIRECTIVITY (Dimensionless)= 6 DIRECTIVITY (dB)= 7.7698
  • 5. PROGRAMS: 1.Program to plot the 3-D radiation pattern of the omni-directional antenna. clc; clear all; close all; tmin=input('The Lower Range of Theta in Degree= '); tmax=input('The Upper Range of Theta in Degree= '); pmin=input('The Lower Range of Phi in Degree= '); pmax=input('The Upper Range of Phi in Degree= '); tinc=2; pinc=4; rad=pi/180; theta1=(tmin:tinc:tmax); phi1=(pmin:pinc:pmax); theta=theta1.*rad; phi=phi1.*rad; [THETA,PHI]=meshgrid(theta,phi); y1=input('The field pattern: E(THETA,PHI)='); v=input('The field pattern: P(THETA,PHI)=','s'); y=abs(y1); ratio=max(max(y)); [X,Y,Z]=sph2cart(THETA,PHI,y); mesh(X,Y,Z); title('3 D Pattern','Color','b','FontName','Helvetica','FontSize',12,'FontWeight','demi'); fprintf('n Input Parameters: n-------------------- '); fprintf('n Theta =%2.0f',tmin); fprintf(' : %2.0f',tinc);
  • 6. fprintf(' : %2.0f',tmax); fprintf('n Phi =%2.0f',pmin); fprintf(' : %2.0f',pinc); fprintf(' : %2.0f',pmax); fprintf('n FIELD PATTERN : %s',v) fprintf('n n Output is shown in the figure below----------- '); fprintf('n'); Output: The Lower Range of Theta in degree=2 The Upper Range of Theta in degree=360 The Lower Range of Phi in degree=4 The Upper Range of Phi in degree=360 The field pattern : 1 The field pattern : cos(THETA) Output is shown in the figure below:
  • 7. 2.Program to plot 2-D pattern of an omni-directional antenna. clc; close all; clear all; theta=0:0.1:2*pi; r=1; [T,R]=meshgrid(theta,r); polar(T,R,'*r') Output: 2-D PATTERN
  • 8. 3.Program to plot 3-D pattern of directional antenna. clc; clear all; close all; tmin=input('The Lower Range of Theta in Degree= '); tmax=input('The Upper Range of Theta in Degree= '); pmin=input('The Lower Range of Phi in Degree= '); pmax=input('The Upper Range of Phi in Degree= '); tinc=2; pinc=4; rad=pi/180; theta1=(tmin:tinc:tmax); phi1=(pmin:pinc:pmax); theta=theta1.*rad; phi=phi1.*rad; [THETA,PHI]=meshgrid(theta,phi); y1=input('The field pattern: E(THETA,PHI)='); v=input('The field pattern: P(THETA,PHI)=','s'); y=abs(y1); ratio=max(max(y)); [X,Y,Z]=sph2cart(THETA,PHI,y); mesh(X,Y,Z); title('3 D Pattern','Color','b','FontName','Helvetica','FontSize',12,'FontWeight','demi'); fprintf('n Input Parameters: n-------------------- '); fprintf('n Theta =%2.0f',tmin); fprintf(' : %2.0f',tinc); fprintf(' : %2.0f',tmax);
  • 9. fprintf('n Phi =%2.0f',pmin); fprintf(' : %2.0f',pinc); fprintf(' : %2.0f',pmax); fprintf('n FIELD PATTERN : %s',v) fprintf('n n Output is shown in the figure below----------- '); fprintf('n'); Output: The Lower Range of Theta in degree=2 The Upper Range of Theta in degree=360 The Lower Range of Phi in degree=4 The Upper Range of Phi in degree=360 The field pattern : 1 The field pattern : cos(THETA).*sin(PHI) Output is shown in the figure below-----------
  • 10. (1) For 2-D clc; close all; clear all; phi=0:0.1:2*pi; e=abs(sin(phi)); polar(phi,e) Output:
  • 11. PROGRAMS: 1.To plot the array pattern and power pattern of the linear array. Clc; close all; clear all; phi=0:.1:2*pi; d=input('give value of d:'); c=3*(10^8); f=input('enter frequency of signal:'); l=c/f; D=input('enter the distance between two antennas:'); B=2*pi/l Dr=B*D n=input('enter no. of point sources:') si=abs(Dr*cos(phi)+d); Eo=abs((1/n).*sin(n.*si./2)./sin(si./2)); polar(phi,Eo) Output: give value of d:0 enter frequency of signal:1e9 enter the distance between two antennas:l/2 enter no. of point sources:4
  • 13. 2.To plot radiation pattern of the end-fire array. Clc; close all; clear all; phi=0:.1:2*pi; c=3*(10^8); f=input('enter frequency of signal:'); l=c/f; D=input('enter the distance between two antennas:'); B=2*pi/l Dr=B*D d=input('give value of d:'); n=input('enter no. of point sources:') si=abs(Dr*cos(phi)+d); Eo=abs((sin(n*si/2))./sin(si/2)); FIELD PATTERN: polar(phi,Eo) Output: enter frequency of signal:1e9 enter the distance between two antennas:l/2 give value of d:-Dr enter no. of point sources:4
  • 14. 3.To plot the radiation pattern of broad-side array. Clc; close all; clear all; phi=0:.1:2*pi; c=3*(10^8); f=input('enter frequency of signal:'); l=c/f; D=input('enter the distance between two antennas:'); B=2*pi/l Dr=B*D d=input('give value of d:'); n=input('enter no. of point sources:') si=abs(Dr*cos(phi)+d); FIELD PATTERN: Eo=abs((sin(n*si/2))./sin(si/2)); polar(phi,Eo) Output: enter frequency of signal:1e9 enter the distance between two antennas:l/2 give value of d:0 enter no. of point sources:4