Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Visualization Radiation Pattern of a N-element Uniform Array

a) N = 10, d = λ/4, β=0

% Antenna Synthesis
% Uniform Linear Array
function uniformlineararray(d,beta,N)
% d = distance (* wavelength)
% beta = phase difference
% N = number of elements
len = 100;
theta = linspace(0,2*pi,len);
psy = 2.*pi.*d.*cos(theta)+beta;
AF = 1/N.*sin(N/2.*psy)./sin(1/2.*psy);

% Polar Plot
figure(1)
polar(theta,AF);
title('Polarization Factor Vs theta');

% 2D-Rectangular Plot
figure(2)
plot(theta,AF);
grid on;
title('Polarization Factor Vs theta');
xlabel('Theta');
ylabel('Array Factor');
phi = linspace(0,2*pi,len);

% 3D-Plot
[T,P] = meshgrid(theta,phi);
PSY = 2.*pi.*d.*cos(T)+beta;
R = 1/N.*sin(N/2.*PSY)./sin(1/2.*PSY);
%Convert Spherical to Cartesian coordinates
[X,Y,Z] = sph2cart(T,P,R);
figure(3)
surf(X,Y,Z);
title('Visualization Array Factor 3D');
b) N = 10, d = λ/4, β=π/4

You might also like