%% Gerber File Generation Using Multiple Connectors
% Create a probe-fed microstrip patch antenna with four ports.

p = design(patchMicrostrip('Substrate',dielectric('FR4')),3.5e9);
p.Width = p.Length;
pb = pcbStack(p);
pb.FeedLocations = [pb.FeedLocations;-.007 0 1 3;0 .007 1 3;0 -.007 1 3];
figure
show(pb)

%
% Pick a manufacturing service.

Wr = PCBServices.MayhewWriter;
Wr.Filename = 'Microstrip antenna-4ports';

% Pick a connector for the feed locations.

C = SMA_Cinchcustom1;

% Create a Gerber file and generate it.

A = PCBWriter(pb,Wr,C);
A.Soldermask = 'neither';
gerberWrite(A) 

%
% Copyright 2019 The MathWorks, Inc.