%% Create Rectangle Shape With User-Defined Properties
% Create a rectangle shape of length 2 m and width 4 m and view it.

r2 = antenna.Rectangle('Length',2,'Width',4)
show(r2);

% Copyright 2012 The MathWorks, Inc.