MATLAB: Is the output of the ‘gerberWrite’ missing the ground top layer

Antenna Toolbox

Why is the output of the 'gerberWrite' missing the ground top layer?
Also, I receive a warning that is not very helpful.
Warning: No metal specified for PCB

Best Answer

After converting an initial design to a PCB stack using a command such as,
>> PCB_stack = pcbStack(antenna)
some kind of analysis should be run such as:
>> show(PCB_stack)
before calling the gerberWrite function to create associated Gerber files.