%% PCB Using Mayhew Labs 3-D Viewer
% Create a coplanar inverted F antenna.

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

%
% Use this antenna in creating a PCB stack object.

p = pcbStack(fco);
figure;
show(p)

%
% Use a Mayhew Writer with a profile board for viewing the PCB in 3D.

s = PCBServices.MayhewWriter;
s.BoardProfileFile = 'profile'

%
% Create an antenna design file using PCBWriter.

PW = PCBWriter(p,s);

%
% Use the gerberWrite method to create Gerber files from the antenna design files.

gerberWrite(PW)

% The location of the folder and the Mayhew labs website opens automatically.
% To view the board, drag and drop the files. Click Done.
%
% Copyright 2012 The MathWorks, Inc.