% Where element_params are:
%
% [width,height,thickness_vert,thickness_horiz]

function plotantenna(X,Y,element_params)

width=element_params(1);
height=element_params(2);
thickness_horiz=element_params(3);
thickness_vert=element_params(4);

rectangle('Curvature',[0,0],'Position',[X-width/2,Y-height/2,width,height])
rectangle('Curvature',[0,0],'Position',[X-width/2+thickness_vert,Y-height/2+thickness_horiz,width/2-thickness_vert-thickness_vert/2,height-2*thickness_horiz])
rectangle('Curvature',[0,0],'Position',[X+thickness_vert/2,Y-height/2+thickness_horiz,width/2-thickness_vert-thickness_vert/2,height-2*thickness_horiz])


