%% Import Gerber Files Using PCB Stackup Definition
% Create a default PCB stackup definition object.

S = stackUp;

% Set the thickness of the dielectric Air in layer 1 and layer 5 of the stackUp object to 0.1 mm.

S.Layer1.Thickness = 0.1e-3;
S.Layer5.Thickness = 0.1e-3;

% Import a top layer Gerber file to layer 2.

S.Layer2 = 'antenna_design_file.gtl';

% Import a bottom layer Gerber file to layer 4.

S.Layer4 = 'antenna_design_file.gbl';

% Create a PCBReader object, B, using the stackUp object, S.

B = PCBReader('StackUp',S);

% Copyright 2020 The MathWorks, Inc.