MATLAB: Issue with creating custom antenna element

antennapcb

I tried to create a custom antenna element such as the one listed in the link here.
I created top and bottom metal layer by adding and subtracting metal layers and finally the top and bottom metal layers are shown as antenna.polygon objects.
But when i try to stack these metal layers with the dielectric, MATLAB throws the following error:
The following error occurred converting from dielectric to antenna.Polygon:
Expected a string scalar or character vector for the parameter name.
Please let me know if I am making any error.

Best Answer

The use case that you mentioned in the code you have kept the Feed Diameter is 0.6e-3, due to which some part of the feed comes out of the metal layer and the structure cannot be solved. One solution can be to change the feed diameter to 0.5e-3(or below) ,or we can change the feed location inside the patch.
Related Question