%% Extract and Modify Metal Layer
% Use the gerberRead function to import top-layer Gerber file.

P = gerberRead('antenna_design_file.gtl');

% Extract the metal layer from the file using the shapes function.

S = shapes(P);

% View the metal layer.

figure
show(S)

% Modify the metal layer.

S.Vertices = [-1 0 0;-0.5 0.2 0;0 0 0;0.0375 -0.0188 0];

% View the modified metal layer.

show(S)

% Copyright 2020 The MathWorks, Inc.
%