%% Conformal Array Using Infinite Ground Plane Antenna
% Create a dipole antenna to use in the reflector and the conformal array.

d = dipole('Length',0.13,'Width',5e-3,'Tilt',90,'TiltAxis','Y');

%
% Create an infinite groundplane reflector antenna using the dipole as exciter.

rf = reflector('Exciter',d,'Spacing',0.15/2,'GroundPlaneLength',inf);

%
% Create a conformal array using 36 dipole antennas and one infinite groundplane reflector antenna. View the array.

x = linspace(-0.4,0.4,6);
y = linspace(-0.4,0.4,6);
[X,Y] = meshgrid(x,y);
pos = [X(:) Y(:) 0.15*ones(numel(X),1)];
for i = 1:36
    element{i} = d;
end
element{37} = rf;
lwa = conformalArray('Element',element,'ElementPosition',[pos;0 0 0.15/2]);
show(lwa)

%
% Drive only the reflector antenna with an amplitude of 1.

V = zeros(1,37);
V(end) = 1;
lwa.AmplitudeTaper = V;

%
% Compute the radiation pattern of the conformal array.

figure
pattern(lwa,1e9,'Type','efield')

% Copyright 2012 The MathWorks, Inc.