%% Import Gerber Files Using Stackup Definition
% Create a PCB stack up definition object using default properties.

S = stackUp;

% Set the thickness of the dielectric Air in layer 1 to 0.1 mm.

S.Layer1.Thickness = 0.1e-3;

% Import a top layer Gerber file to layer 2.

S.Layer2 = 'interdigital_Capacitor.gtl';

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

p = PCBReader('StackUp',S);

% To update the Gerber file, convert the PCBReader object to a pcbComponent object.

pcbcapacitor = pcbComponent(p);
pcbcapacitor.FeedDiameter = 0.001

% View the PCB component in the Gerber file.

show(pcbcapacitor)

% Copyright 2021 The MathWorks, Inc.