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.