PCB Antenna Design Toolbox not importing full copper layer

For some reason, matlab isn't importing the full gerber for the top layer. Any normal traces or other orthagonal copper areas are not imorted, for example, below is my gerber using gerberviewer:
Notice the copper for the ground plane is complete at the bottom, since I added an extra orthogonal shape to fill the gaps in the next picture. This is what matlab imports:
I also tried earlier to design the antenna using traces instead of shapes, but matlab refused to show the traces itself, and was only showing the ground pour... I then checked the file using gerber viewer, and the traces were included in gerber viewer... Not sure if there is something I am missing? My code is also below for reference.
%Setup and prepare files
S = stackUp;
d = dielectric('FR4');
S.Layer3 = d;
S.Layer1.Thickness = 0.1e-3;
S.Layer5.Thickness = 0.1e-3;
S.Layer2 = 'Gerber_TopLayer.GTL';
S.Layer4 = 'Gerber_BottomLayer.GBL';
S.Layer3.Thickness = 0.8e-3;
B = PCBReader('StackUp',S);
B.NumPointsOnCurves = 5;
%B.DrillFile = 'Drill_PTH_Through.DRL';
p3 = pcbStack(B);
%setup other parameters:
NFeedPoint = [0.01, 0.003406, 2, 4];
p3.FeedLocations = NFeedPoint;
p3.FeedDiameter = 0.2e-3;
%Visualize for human interpret
figure
show(p3)
SS = shapes(B);
figure
show(SS(1))
show(SS(2))
figure
impedance(p3,700e6:50e6:1000e6)

Answers (0)

Categories

Asked:

on 18 Aug 2022

Commented:

on 19 Oct 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!