Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

rotateZ

Rotate shape about Z-axis and angle

Syntax

rotateZ(shape,angle)
c = rotateZ(shape,angle)

Description

example

rotateZ(shape,angle) rotate shape about the Z-axis and angle.

c = rotateZ(shape,angle) rotate shape about the Z-axis and angle.

Examples

collapse all

Create and view a rectangle with a length of 2 m and a width of 4 m.

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

Rotate the rectangle.

rotateZ(r2,45);
show(r2)

Input Arguments

collapse all

Shape created using custom elements and shape objects of Antenna Toolbox, specified as an object handle.

Example: rotateZ(rectangle) where rectangle is created using antenna.Rectangle object.

Angle of rotation, specified as a scalar in degrees

Example: rotateZ(rectangle,45) rotates the rectangle around Z-axis by 45 degrees.

Data Types: double

Introduced in R2017a

Was this topic helpful?