%% Rotate Rectangle About Y-Axis
% Create a rectangle shape.

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

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

r1 = rotateY(r,45)
show(r1)
axis equal

%
% Copyright 2012 The MathWorks, Inc.