%% Gerber Files of Antennas with Multiple Feeds
% Design a patch antenna.

p = design(patchMicrostrip,3.5e9);
p.Width = p.Length;
p.Substrate = dielectric('FR4');

%
% Create a stack representation of the patch antenna.

pb = pcbStack(p);

pb.FeedLocations = [pb.FeedLocations;-.007 0 1 3;0 .007 1 3;0 -.007 1 3];

% Pick a connector for the feed locations.

C = SMA_Cinchcustom1;

% Pick a manufacturing service.

Wr = PCBServices.MayhewWriter;

% Create a Gerber file and generate it.

A = PCBWriter(pb,Wr,C);
gerberWrite(A) 

%
% Copyright 2018 The MathWorks, Inc.