%% Subtract Two Shapes
% Create an ellipse with default properties.

 e3 = antenna.Ellipse;

%
% Create a rectangle with a length of 0.1 m and width of 0.2 m.

 r = antenna.Rectangle('Length',0.1,'Width',0.2);

%
% Subtract the two shapes  using the minus operator.

 s = e3-r;

% Mesh the subtracted shape with a maximum edge length of 1 m.

 mesh(s,1)

%
% Copyright 2019 The MathWorks, Inc.