%% Rotate Rectangle
% Create a rectangle shape.

r = antenna.Rectangle;
show(r)
axis equal

%
% Rotate the rectangle at 45 degrees about the Z-axis.

r1 = rotate(r,45,[0 0 0],[0 0 1])
show(r1)

% Copyright 2012 The MathWorks, Inc.