%% Conformal Array of Subarrays and Antennas
% Create a linear array of dipoles with and element spacing of 1m.

la = linearArray('ElementSpacing',1);

%
% Create a rectangular array of microstrip patch antennas.

ra = rectangularArray('Element',patchMicrostrip,'RowSpacing',0.1,'ColumnSpacing',0.1);

% Create a subarray containing the above linear and rectangular arrays with changes in amplitude taper and phase shift values.

subArr = conformalArray('Element',{la ra dipole},'ElementPosition',[0 0 1.5;0 0 0;1 1 1],...
    'AmplitudeTaper',[3 0.3 0.03],'PhaseShift',[90 180 120]);
show(subArr)

% Copyright 2018 The MathWorks, Inc.