%% Extract Metal from Two-Layer Design PCBReader Object
% Create a PCBReader object.

B = PCBReader;

% Import a two-layer design.

st = B.StackUp;
st.Layer2 = 'UWBVivaldi.gtl';
st.Layer4 = 'UWBVivaldi.gbl';
B.StackUp = st;

% Extract shapes from the metal layers.

S = shapes(B);

% View the top-layer Gerber file.

figure
show(S(1))

% View the bottom-layer Gerber file.

figure
show(S(2))

% Copyright 2020 The MathWorks, Inc.