%% Circular Microstrip Patch Antenna on Polygon Shaped Board
% Create a circular microstrip patch antenna.

ant = design(patchMicrostripCircular,3e9);
ant.Substrate = dielectric( 'FR4' );
show(ant)
c = antenna.Circle;
show(c)
c.NumPoints = 6;
c.Radius = 3*ant.Radius;
figure
show(c)

% Create the PCB stack using the vertices derived from the circle shape.

v = getShapeVertices(c);
cp = antenna.Polygon( 'Vertices' ,v);
pb = pcbStack(ant);
pb.Layers{3} = cp;
pb.BoardShape = cp;
show(pb)
axis equal

%
% Copyright 2018 The MathWorks, Inc.