%% Create Rectangular Array of PCB Antenna
% Create a PCB antenna using pcbStack object

pcbAnt = pcbStack
pcbAnt.Layers{1} = pcbAnt.Layers{1} - antenna.Rectangle('Length',7e-3,'Width',7e-3);
pcbAnt.Layers{1} = pcbAnt.Layers{1} - antenna.Circle('Radius',5e-3,'Center',[20e-3,0]);
pcbAnt.Layers{2} = dielectric('FR4');
pcbAnt.Layers{3} = antenna.Rectangle('Length',0.15,'Width',0.075);
pcbAnt.FeedLocations(end) = 3;
show(pcbAnt)

% Create a 4x4 rectangular array of the PCB antenna.

pcbArr = array(pcbAnt,'rectangular','Size',[4 4],'ColumnSpacing',0.1,'RowSpacing',0.2);
show(pcbArr)

% Copyright 2020 The MathWorks, Inc.