%% Show Antenna PCB Design Using Mayhew Manufacturing Service
% Create a coplanar inverted F antenna.

fco = invertedFcoplanar('Height',14e-3,'GroundPlaneLength', 100e-3,  ...
                  'GroundPlaneWidth', 100e-3);

%
% Use this antenna in creating a pcbStack object.

p = pcbStack(fco)
figure
show(p)

%
% Use an SMA_Cinch as an RF connector and Mayhew Writer as a 3-D viewer.

c = PCBConnectors.SMA_Cinch
s = PCBServices.MayhewWriter

%
% Create an antenna design file using PCBWriter .

PW = PCBWriter(p,s,c)

%
% Use the gerberWrite method to create gerber files from the antenna design files. The files generated are then send to the Mayhew writer manufacturing service.

gerberWrite(PW)

% By default, the folder containing the gerber files is called "untitled" and is located in your MATLAB folder. Running this example automatically opens up the Mayhew Labs PCB manufacturing service in your internet browser.
%
% Drag and drop all your files from the "untitled" folder.
%
% Click Done to view your Antenna PCB.
%
% Copyright 2012 The MathWorks, Inc.